Order via API failed due to Margin shortfall

My account has Rs. 2,35,000.

I placed an order via API. I Sold CE and PE of Banknifty for around 130 Rs. with 50% stop-loss which should not have utilized the Margin beyond 2.35 Lakhs.

I Got the Following Error:
RED:MarginĀ Shortfall:INRĀ 44,292.82Ā Available:INRĀ 2,35,238.58Ā ForĀ CĀ ABC12345Ā [FYERS_RISK_CUG]

Zerodha Margin Calculator shows Rs. 1.5L Margin is required for the above trade.

Why Fyers is not accepting the order in spite of having Rs. 2.35L Balance in the account.

4 replies