Account (WebSocket)
Orders
Track order state, remaining size, and conditional-order transitions.
WSS
Use
orderUpdate to maintain an account’s open orders. Subscribe through the
public account stream, without a signature.
This page focuses on orders; the network endpoint does not filter the subscription by
event type, so snapshots, fills, and other account messages may also arrive.
When it arrives
Order updates report placement, modification, fills, cancellation, rejection, and conditional-order transitions. Each carries the order’s state. Delivery is asynchronous relative to the tradingpost response; either can arrive first.
Handling
Initialize from an account snapshot, then apply updates by order ID, retaining the account andisoPubkey identity.
origSz and remaining sz are signed: positive means buy, negative means sell.
fillSz is a non-negative cumulative filled quantity. Trigger baskets have
zero size because their nested actions carry the trading intent.
Remove terminal orders based on status, even if sz still shows an unfilled
remainder. A reconnect requires a fresh snapshot; there is no replay cursor.
Partial fills and conditional transitions
Partial fills and conditional transitions
working remains active; partiallyFilled is terminal. filled, cancellation
and rejection statuses, siblingCancelled, and triggerFailed are terminal.
triggered means a conditional root fired; it does not itself establish a fill
or terminal execution outcome. Follow subsequent order and fill events.pendingOnFill represents an unfired first-fill registration, not an already
executed consequent order. Do not infer consequent execution from its removal.