Regarding Modification of Trigger Price For Cover Order

vinod1962
Hi,
I am bit confused about the modification of orders in cover order

Is below mentioned format correct ?

For modifying stop loss

kite.modify_order(variety='co',parent_order_id=order_number,order_id=stoploss_id,trigger_price=new_price_that_I_would_like_to_keep)

and this one for exiting the cover order at market price:-

kite.cancel_order(variety=kite.VARIETY_CO,order_id=stop_loss_id)
  • sujith
    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.
  • sujith
    For exit of special orders, pykiteconnect has this method.
  • rakeshr
    kite.modify_order(variety='co',parent_order_id=order_number,order_id=stoploss_id,trigger_price=new_price_that_I_would_like_to_keep)
    Yes, you can modify pending SL trigger order with above param. You can check the complete required param here.
    kite.cancel_order(variety=kite.VARIETY_CO,order_id=stop_loss_id)
    No, you need to exit Co order. You can check exit_order order param here.
  • vinod1962
    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.

    Any other conditions ?
Sign In or Register to comment.