Use this file to discover all available pages before exploring further.
The AGG WebSocket delivers a full aggregated orderbook snapshot on subscribe, then incremental
deltas as the book changes. Each outcome has its own orderbook — there is no complement derivation.
Each level includes per-venue attribution so you can render both the aggregated depth and the venue
breakdown from the same stream.
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 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.
const response = await client.getOrderbooks({ venueMarketIds: ["your-market-id"], depth: 20,});const book = response.data[0];if (book?.status !== "ok") { throw new Error(book?.error?.message ?? "No live orderbook available");}// book.venueOrderbooks — per-venue depth keyed by venue// book.matchedMarkets — venue markets considered for the requested market// book.requestedMarket — lifecycle metadata for the requested market
See the Setup Guide for the one-time AggProvider and QueryClientProvider
wiring. This recipe starts at the hook usage layer.
The SDK verifies seq 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.