My orders have been changing from order-type SL-M to order-type LIMIT without me explicitly doing this modification. I have been testing and debugging for last couple of days but cannot spot the reason. Here is the order history (Somehow this is happening mostly for fno instruments)
ok i think i have not attached the correct log. I accidentally attached a log for a stoploss triggered case perhaps. (moderators may delete this post) I'll post the correct one tomorrow after re-running the test.
Once a trigger is hit, the order type becomes LIMIT or MARKET in case of stoploss SL and SL-M orders.