Skip to main content

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_snapshot from transactions subscription or GET /v1/trading/accounts/{account_id}/snapshot to 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_event was not observed, use GET /v1/trading/accounts/{account_id}/operations/{operation_id} while the operation status is retained.