If i place a bracket order, then the stoploss child order has order_type = 'SL' but when the stoploss is triggered, this order_type changes to 'LIMIT'. is there any reason for this behaviour? Would it be possible to just keep the order_type whatever it was initially.
@amit123, This is how the exchanges' order management mechanism works. Stop-loss orders are merely triggers that sit on a passive order book at the exchange that pushes a Limit order(for SL) and Market order(for SL-M) whenever the LTP matches the trigger price. More information here.
This is how the exchanges' order management mechanism works. Stop-loss orders are merely triggers that sit on a passive order book at the exchange that pushes a Limit order(for SL) and Market order(for SL-M) whenever the LTP matches the trigger price. More information here.