Issue with Multi leg order exit

Hello Team

i am using identical python script in 2 different accounts.

in the flow there it exits 2 options SELL ORDER, one after another, with order type as MARKET always.

in one account it exits both legs immediately as expected, but in another account it exits one leg and for other order it puts BUY LIMIT ORDER even though in executing fyers exit api i have always set to use MARKET Order type due to which this order doesnt get exited.

What could be the reason for this issue? Also in failing account it doesnt always do this, sometimes there also it exits as expected. Order is taken on Nifty weekly options with 1 lot

Thanks for sharing the details, @117375893251546738105. Give me some time, let me check with details and get back to you.

Sure Thanks Tharun

Hey Vishal,

As part of the retail algo trading regulations effective from 1st April, market orders are no longer supported via APIs. Therefore, all market orders are automatically processed as MPP orders. Please click here to understand how MPP orders function.

In practice, market orders are converted into limit orders, and their execution follows standard limit order behavior.