Order status
The orderStatus and subscriptionStatus values carried on an order state message.
An order state message reports two independent things: what happened to the
order, and whether you are subscribed to further updates for it. An order can be
PENDING and NOT_SUBSCRIBED at the same time.
orderStatus
The outcome of the order itself.
| Code | Description |
|---|---|
SUCCESS | The order was executed |
FAILED | The order was not executed |
PENDING | The order has been accepted and is still in flight; no terminal outcome has been reached |
subscriptionStatus
Whether the connection is receiving further updates for this order. Orthogonal to the order's own outcome.
| Code | Description |
|---|---|
NOT_SUBSCRIBED | No updates for this order are being delivered to this connection |
SUBSCRIBED | Updates for this order are being delivered to this connection |
UNSUBSCRIBED | Updates were being delivered and have been stopped |