MODIFYING SL ORDER TO EXIT AT MARKET

Snischal
Hi, while we are trading manually through kite, we can modify an SL order to a market/limit exit order.
Can we do the same through the API.
To elaborate :
If we have a stop loss order in status 'TRIGGER PENDING', can we use the fwg code to modify it to a market exit order
kite.modify_order(
kite.VARIETY_REGULAR,
'order_id',
parent_order_id=None,
quantity=None,
0,
kite.ORDER_TYPE_MARKET,
trigger_price=None,
validity=None,
disclosed_quantity=None)
This discussion has been closed.