@DD1365 Thanks for your reply.
I tried to sell both the legs simultaneously but only one leg was executed and the other got rejected saying margin shortfall. This resulted in a huge loss, wiping out 3% of my capital in a very short span of time. …
@rakeshr These glitches are happening very frequently with Zerodha API. In the end, the client has to endure heavy losses. You will never learn from your mistakes.