¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

OrderState Status Partial Fill


 

All,

Having some difficulty simulating this, when requesting a filled order, what is the "status" in the OrderState class if it is partially filled?? Is there a way to tell if the order is completely or only partially filled?

Mike


 

I don't think there is a status text specifically for partially filled orders. Such working orders will have the status "Submitted" and change to "Filled" once completely executed.

Every change in the status of the order is communicated with the OrderStatus callback. It conveys information about filled and remaining amounts amongst other things. Alternatively, you can count order executions with the ExecDetails callback.


 

My vote is on since callbacks are messy and unreliable.

First of all you get many duplicates and there is a good chance that you don't get some that you really want. We have seen cases where orders change status while TWS had no connection with IB (during the maintenance window or during network issues) and none of the orderStatus messages that we would have expected were delivered after connection restauration But the execution reports and account updates did get delivered as soon as TWS reestablished connection.