Hi @sujith In the above scenario if the order type as BO, will the order id be the same for pending and filled (executed order) ? If yes , will it also exit the executed order? Also if no , how to identify the order id of the unfilled quantity ?
@nickmanan, In an ideal scenario, the system shouldn't exit second leg orders but as of now, it is exiting bracket order when you cancel first leg order. We are working on the fix.
You can fetch orderbook and loop through the unfilled_quantity field to identify orders.
@sujith using unfilled_quantity i can identify the unfilled quantity but how can i cancel it ?
In an ideal scenario, the system shouldn't exit second leg orders but as of now, it is exiting bracket order when you cancel first leg order. We are working on the fix...... Do you mean currently we cannot cancel the unfilled quantity ?
Check out example for modifying order here.
if my original qty was 100 and 60 executed, now i want to cancel balance open 40, should i modify order with put (qty=60)?????
You can cancel that order.
In the above scenario if the order type as BO, will the order id be the same for pending and filled (executed order) ? If yes , will it also exit the executed order?
Also if no , how to identify the order id of the unfilled quantity ?
In an ideal scenario, the system shouldn't exit second leg orders but as of now, it is exiting bracket order when you cancel first leg order. We are working on the fix.
You can fetch orderbook and loop through the unfilled_quantity field to identify orders.
In an ideal scenario, the system shouldn't exit second leg orders but as of now, it is exiting bracket order when you cancel first leg order. We are working on the fix...... Do you mean currently we cannot cancel the unfilled quantity ?
Instead, you can modify order quantity.