Hi, I want to get number of shares by giving margin amount from BO margin calculator. Currently it gives actual amount, margin required & leverage based on share price, stop loss, quantity, no of shares and buy. Or if possible may I get the formula to calculate margin.
It is redundant to give API for this. We have APIs from where you can get margins data. You can calculate it yourself. For margins data checkout this thread https://kite.trade/forum/discussion/930/last-trade-time-missing-in-kite-api#latest
For calculation details go through section 4.4 of http://zerodha.com/varsity/chapter/leverage-payoff/