Today at day close the algo sent two orders, BANKNIFTY23NOVFUT BUY five lots orderid 231117202841293 BANKNIFTY23NOV43000CE SELL five lots orderid 231117202841490
The API returned a "success" status along with the order IDs. However, in the kiteweb login, it said that the options order BANKNIFTY23NOV43000CE orderid BANKNIFTY23NOV43000CE was rejected, because of "insufficient margin" - required 38,76,860 where as available margin is 32,98,495.
Two issues, 1) Why is the margin requirement so ridiculously high? Looks like an error from the zerodha RMS. 2) If the order is not meeting the margin req, why is the system returning a success status along with order ID?