Skip to main content
WSS
Subscribe to Level 2 orderbook updates for bids and asks. Each event includes an update_type set to either snapshot (a full orderbook) or delta (only the changes). When you subscribe, you’ll first receive a complete snapshot with its sequence_number. After that, you’ll get delta updates, which only include what’s changed. In a delta, any bid or ask with size: 0 means that price level has been removed. Each delta update should have a sequence number that increases by one. If you notice a gap or jump in sequence numbers, you may have missed updates. In that case, resubscribe to ensure your orderbook is accurate.

Example Request

Example Response

The first event received after subscribing is a snapshot of the complete orderbook. Subsequent events are delta updates that modify the orderbook state.

Snapshot (First Event)

Delta Updates (Subsequent Events)

After the initial snapshot, subsequent events contain delta updates with "update_type": "delta" that modify the orderbook state. Apply these deltas to maintain an up-to-date orderbook.

WebSocket Client Examples

Python

JavaScript

Subscription request
type:object

Send subscribe/unsubscribe request

Orderbook channel event
type:object

Server-pushed JSON-RPC event