I means, if by python api we place BO (Bracket order), then upon execution of buy order, 2 sell orders should generate, will this python order api call return id of those 2 generated sell orders? so that can track when any one of those 2 will get executed?
Still I haven't bought API subscription(its costly and no trial or (production/development) separate environment provided in APIs, so can't see by myself right now.
On successful placement of an order, you will receive an order_id. This is the entry order_id. Once the first leg is executed, there will be two second leg orders placed by the system and those will have a parent_order_id field which points to the first leg order.
A successful placement of the order doesn't mean the order is executed. It just means order placement is successful. For more information, you can take a look at documentation.
Yes, you need to iterate through orderbook and find the orders.
Hi! I wanted to know that once a BO is sent to Kite, I will get a Postback on my registered postback url regarding any order updates for this order. My question is, after the BO is sent to Kite, does kite also sends a Postback with orderids of the second leg orders and their status? Note: I am referring to the situation where even the first leg order has not been executed. 2nd question, I'll receive the postbacks for 2nd leg orders on the registered postback url, correct?
In the case of bracket order, the second leg orders are placed after there is at least one trade for the first leg order. If first leg order gets filled in 2 trades then you will have 4 second leg orders.
Yes, you need to iterate through orderbook and find the orders.
I wanted to know that once a BO is sent to Kite, I will get a Postback on my registered postback url regarding any order updates for this order.
My question is, after the BO is sent to Kite, does kite also sends a Postback with orderids of the second leg orders and their status? Note: I am referring to the situation where even the first leg order has not been executed.
2nd question, I'll receive the postbacks for 2nd leg orders on the registered postback url, correct?
If first leg order gets filled in 2 trades then you will have 4 second leg orders.