Order statuses
An order can be assigned one of the following statuses:
Working — indicates that the order is open and waiting to be executed partially or in full.
Completed — indicates that the order has been executed.
Cancelled — indicates that the order has been cancelled, either explicitly by a user or because it has not been filled according to the order type settings (for example, in 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 — indicates that the order has been rejected (for example, as a result of changing the user profile status to Frozen).
Reverted — indicates that the order has been reverted as a result of rolling back an associated trade.