Order status changes also stream live over the Orders WebSocket. When you track open orders from the stream, drop an order once its status becomes terminal (
ORDER_STATUS_FILLED, ORDER_STATUS_CANCELLED, or ORDER_STATUS_REJECTED).Available statuses
An attached bracket pair has its own pre-activation lifecycle —
pending_activation, active, never_activated — reported through the attachedBracket object on its entry order. Once active, the pair is an ordinary order and moves through the statuses above. See Bracket Orders.What an open order is doing
GET /orders/{orderId} returns an activity object beside order and fills. While the order is open, activity.summary tells you why it has not filled yet: resting until its price condition is met, waiting for the next TWAP slice, executing, or retrying after a failed attempt and why it failed.
activity is null once the order closes, and on an open order with nothing to report. The wording can change, so don’t parse it.
Cancellable statuses
Three statuses permit cancellation:ORDER_STATUS_PENDING, ORDER_STATUS_ACCEPTED, and ORDER_STATUS_PARTIALLY_FILLED.
Non-cancellable statuses
Four statuses prevent cancellation:ORDER_STATUS_FILLED, ORDER_STATUS_CANCELLED, ORDER_STATUS_REJECTED, and ORDER_STATUS_TERMINATED.
Cancellation reasons
When an order ends inORDER_STATUS_CANCELLED or ORDER_STATUS_REJECTED, the closeReason field on the order response carries a reason code explaining why. Below are a few common reasons you can act on. This list is not exhaustive and can grow.