Skip to main content
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 trading post response; either can arrive first.

Handling

Initialize from an account snapshot, then apply updates by order ID, retaining the account and isoPubkey 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.
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.
Subscribe
type:object

Schema defaults on this request are playground example prefills, not omitted-field defaults accepted by the network endpoint.

Order update
type:object

Network-published orderUpdate

Subscribed
type:object
Unsubscribed
type:object