- SDK (vanilla JS/TS)
- Hooks (React)
- UI Components
Full control over the WebSocket connection and local orderbook state.The SDK applies snapshots and deltas for you, tracks
1. Connect and subscribe
seq, validates checksum (XOR of
per-level CRC32), drops stale deltas where seq <= current.seq, and requests a fresh snapshot
when integrity checks fail. The gateway is a stateless fan-out — all orderbook recovery is
handled client-side by the SDK.2. Read the orderbook
TheOrderbookState passed to callbacks uses object-shaped levels:3. Per-venue orderbooks
Per-venue depth is available on the same object:4. REST fallback
For one-time fetches without a live socket:Integrity
The SDK verifiesseq and checksum automatically and requests a fresh snapshot when the local
book drifts. If you are implementing the wire protocol yourself, use the
WebSocket Protocol page for the snapshot/delta formats and resnapshot flow.
Related
WebSocket Protocol
Wire format, sequencing, resnapshot requests, and heartbeat behavior.
Real-Time Charts
Build live candles from the same orderbook and trade streams.
User Notifications
Authenticated order and balance events on the same WebSocket connection.