Execution issue in basket order

I placed buy order first and then sell order to get margin benefit in options in basket order but everytime my sell order is getting executed first resulting in margin shortfall.

Hi @AJEET_11279642,

Could you please share more details on a ticket https://upstox.com/contact-us/get-in-touch/ with relevant screenshots and share the Ticket ID? We will check it, thanks.

Is there any recent update that while selling options,sell orders will be executed first then buy orders will be executed in the basket order regardless of the sequence? @Ushnota