Order statuses
An order can be assigned one of the following statuses:
Started — the order has passed preliminary checks, there are enough funds on a trader’s balance to place such an order.
Pending — for Limit and Stop limit orders: the order is waiting for a price trigger.
Working — the order is being executed: one or more external orders are created.
Completed — the order has been executed in its full amount.
Cancelled — the order has been cancelled, either explicitly by a trade or because it hasn’t been filled according to the order settings (for example, in the case of FOK orders). Note that if the order was partially executed, but some part of it got canceled (for example, in the case of IOC orders), then such an order is also assigned the Cancelled status.
Rejected — the order has been rejected by the system and has never been assigned the Working status.
Expired — the order has been cancelled due to Time in force settings. Some part of it may have already been executed (for example, in the case of IOC orders).