I wanted to ask that if there is any function for retrieving how much leverage is available in each security and if the security is allowed to trade in Intraday or otherwise , if not I request the developers to provide with the same. It will be very helpful to the users in many ways.
Thank You
The Upstox API does not currently support this feature. We will relay this information to the concerned team. Rest assured, we will update you once this feature becomes available.
1 Like
Hi,
Any update on this feature?
This feature is currently in development and will be available in the next release.
Any Update?
@SRIJAN_30253076 Weāve added the following instrument lists to the documentation:
- MIS Instruments: View the list of instruments available for Margin Intraday Square-off (MIS) on Upstox:Instruments | Upstox Developer API
- MTF Instruments: The list of instruments available under Margin Trading Facility (MTF) is now also available:Instruments | Upstox Developer API
- Suspended Instruments: Refer to this section for instruments currently suspended from trading on Upstox:Instruments | Upstox Developer API
1 Like
But is there any API for getting the leverage on a stock.
I am trying to calculate the quantity of stocks I can trade given my fund balance.
like this
available_cash = trader.get_margin()
leverage = trader.get_leverage(instrument_key)
quantity = int(available_cash0.9leverage/latest_price) # Use 90% of available cash for trading and x leverage