Leverage in Upstox API

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:

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