It looks like you're new here. If you want to get involved, click one of these buttons!
As far as I understand, once the first leg (parent order) of an iceberg order is executed, its state is changed to COMPLETE, and immediately the second leg's order will placed into the market. The second leg's orderId will be available in the orderbook only after the first leg's order reaches COMPLETE status, and so on.
If any leg of an Iceberg is cancelled, all the remaining pending legs that are yet to be placed will be automatically cancelled. Similarly, if the price of any leg of the Iceberg is modified, the new price will automatically be applied to all the pending legs.
@Kailash
Can you please clarify
Thanks for the response. I could finally test this on an illiquid stock option. I observed that I am not able to cancel the remaining iceberg legs with the parent_order_id, once the first iceberg leg is executed (i.e., when the status of parent orderId is changed to COMPLETE)
I used the right variety "iceberg" while hitting the cancellation API. However, I get error response with the following message: "Order cannot be cancelled as it is being processed. Try later."
I am able to cancel only with the new order_id of the current leg that is open.
Please verify and confirm if I am missing something?