Server Events
Server events provide realtime updates using separate WebSocket connections:
- One stream is used for trading events.
- Another stream is used for market prices.
- A separate connection is used for HMR events.
Recovery guarantees and limits:
- WebSocket streams are realtime streams and do not provide durable replay, resume tokens, or gap-fill by event id.
- After reconnect, the client must create a new WebSocket connection and resubscribe.
- State recovery is snapshot-based: use the initial
trading_state_snapshotfromtransactionssubscription orGET /v1/trading/accounts/{account_id}/snapshotto reconcile current open orders, open positions, and account state. - Operation outcome recovery is operation-id based: if a REST ACK was received but the corresponding
transaction_eventwas not observed, useGET /v1/trading/accounts/{account_id}/operations/{operation_id}while the operation status is retained.
Server events subscription
Server events subscription provides realtime updates about:
Ticks subscription
Ticks subscription provides realtime Bid/Ask prices for subscribed instruments.
HMR subscription
Provides realtime updates about HMR events affecting trading conditions.