Hi Kailash, you give me answer " parent_order_id is the id you get when you first place the BO (the very first order) " for what is parent_order_id on 2 June
RH1558 June 3 i am using algotrading, where programeticly place order for more than one stocks eg. place bracket orders for ACC and 3MINDIA,
1st order ACC BUY 2nd order ACC SELL 3rd order 3MINDIA BUY 4th order 3MINDIA SELL
if ACC BUY order trigger then cancel SELL order for ACC if 3MINDIA SELL order trigger then cancel BUY order for 3MINDIA
i dont get this "parent_order_id is the id you get when you first place the BO (the very first order)" now which order id is parent_order_id, i am conffused about "the very first order"
@RH1558 BO is a multi legged order. When you place a BO, it generates multiple orders (stop loss etc.). The order ID that you get when you place the BO is the parent_order_id.
Once the first leg of the BO (the parent order) is executed, you'd obviously not see it in the pending list, but a new order, the next leg. To exit this second order, you have to pass the parent_order_id.
@Kailash - Can you kindly clear our doubt please, this is a showstopper for our development effort.
Thanks
Once the first leg of the BO (the parent order) is executed, you'd obviously not see it in the pending list, but a new order, the next leg. To exit this second order, you have to pass the parent_order_id.