Market Data (WebSocket)
L2 Order Book
L2 Order Book WebSocket subscription and response reference.
WSS
Connect to
Parameters:
wss://mainnet-ws1.bulk.trade, then send the subscription below. All channels share the same socket; the page name is not a separate endpoint path. The playground sends read-only subscription messages.
Periodic full order book snapshots.
nlevels(optional): Number of price levels per sideaggregation(optional): Price bucket size in quote currency
levels[0] = bids (descending), levels[1] = asks (ascending)
timestamp is Unix time in nanoseconds. Replace the local snapshot in full
on each message. The topic includes nlevels and, when supplied alongside
nlevels, aggregation; use the exact returned topic when unsubscribing.
For example, nlevels: 20 produces l2snapshot.BTC-USD.20. Supply nlevels
when using aggregation so each aggregation variant has a distinct topic.