How can I get margin requirements for writing options through the api? A year old thread mentions that this is being tested and will soon be released. Has this been released? Or is there a formula that can be used on top of the margin requirement for futures? Or is there a easier way to access it off the margin calculator page? I'm looking to get margin requirements for nifty / bank nifty.
You may use future margin APIs , to calculate margin for options selling at your end.
You can go through this document on Nse, to get detailed formula.
You can also have look to this thread.