Modifying the stop loss of a cover order in PHP

thepunisher
After placing a cover order at market price, I would like to modify its stop loss if certain conditions are met.

If the following code correct?
$kite->modifyOrder( $kite::VARIETY_CO, '<stoploss order_id>', array( 'parent_order_id' => '<main order id>', 'trigger_price' => '<new stop loss>' ) );
Do I have to specify the parent_order_id?
  • rakeshr
    Do I have to specify the parent_order_id?
    No, you need to send SL pending order_id. You can check all params detail here.
Sign In or Register to comment.