The request for modifying the stop-loss trigger price seems fine but for exiting cover order, you need to send the parent order id as well. You can know more here.
Is this the correct format for exiting cover order at market price @sujith@rakeshr kite.cancel_order(variety=kite.VARIETY_CO,order_id=stop_loss_id,parent_order_id=order_number_of_first_leg)
Also, what are different scenarios in which stop loss modification failed. I know that if trigger price is above ltp, it won't go through.
kite.cancel_order(variety=kite.VARIETY_CO,order_id=stop_loss_id,parent_order_id=order_number_of_first_leg)
Also, what are different scenarios in which stop loss modification failed.
I know that if trigger price is above ltp, it won't go through.
Any other conditions ?