The kite.margins(segment="equity") is to fetch fund deatails in a Zerodha trading account. The above URL's are for calculating instruments margins(funds required to buy an instrument).
It means the possible value for stop-loss can be up to 4% below the LTP and not more than that.
How do I deduce from this API that the CO leverage has been changed from 20.8x to 16.7x for Nifty50 stocks (cash)? Earlier I used hardcoded 20.8 value to deduce margin/quantity to buy - but I would like this to dynamically adjust because of this value changes depending on volatility?
Yeah, you can parse below API's:
https://api.kite.trade/margins/futures
https://api.kite.trade/margins/equity
https://api.kite.trade/margins/commodity
https://api.kite.trade/margins/currency
To understand co_upper and co_lower values, go through this thread.
why is it different from kite.margins(segment="equity") -- that shows margin for user's details and not scrip level information.
Also you explained - ""co_lower": 4% is the margin requirement of contract value for CO." Does this translate to 100/4 = 25X leverage?
kite.margins(segment="equity")
is to fetch fund deatails in a Zerodha trading account.The above URL's are for calculating instruments margins(funds required to buy an instrument).
It means the possible value for stop-loss can be up to 4% below the LTP and not more than that.
One question is still unclear to me:
How do I deduce from this API that the CO leverage has been changed from 20.8x to 16.7x for Nifty50 stocks (cash)? Earlier I used hardcoded 20.8 value to deduce margin/quantity to buy - but I would like this to dynamically adjust because of this value changes depending on volatility?
For example: