@rakeshr thanks for the reply but I am trying to risk manage my position by calculating the margin required upfront before placing a spread order. Since all my trades are algo based I won't be able to check the margin required manually.
It is not fixed. It can be updated any number of times. These are the rules set by RMS during the day. The data will be updated whenever they change the data.
We only provide data, you need to do calculations at your end. The above endpoints are the source margin calculations. It can be updated multiple times during the day.
@sujith, I think I am not clear with my question. If I want full instrument dump I do kite.instruments() call, likewise is there way to get margin data that is available in https://api.kite.trade/margins/futures
@sujith, data that are present in the website https://api.kite.trade/margins/futures, [{"margin": 16.24, "co_lower": 2.25, "mis_multiplier": 0, "tradingsymbol": "ACC18NOVFUT", "co_upper": 6.0, "nrml_margin": 98005.0, "mis_margin": 44102.25},......]
above links don't give margin for all scripts available in Zerodha, is there any alternative function or links like above to get margin for a specific script.
You can have look to this thread.
For calculating option hedge spread, we don't have specific APIs,you need to use Zerodha Margin calculator to check the same.
You can also have look to this thread.
Since all my trades are algo based I won't be able to check the margin required manually.
https://api.kite.trade/margins/futures
https://api.kite.trade/margins/equity
https://api.kite.trade/margins/commodity
https://api.kite.trade/margins/currency
how many times in a days it will be updated?
[{"margin": 16.24, "co_lower": 2.25, "mis_multiplier": 0, "tradingsymbol": "ACC18NOVFUT", "co_upper": 6.0, "nrml_margin": 98005.0, "mis_margin": 44102.25},......]
Each and every time I am manually copying the data from the website https://api.kite.trade/margins/futures and pasting it into my code.
https://api.kite.trade/margins/equity
https://api.kite.trade/margins/commodity
https://api.kite.trade/margins/currency
above links don't give margin for all scripts available in Zerodha, is there any alternative function or links like above to get margin for a specific script.
Thank you.
Yes, you can use margin calculation APIs, refer to this documentation to know more.