Market Data (WebSocket)
L2 Order Book Deltas
L2 Order Book Deltas WebSocket subscription and response reference.
WSS
Connect to
Initial Response: A message with outer
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.
Real-time incremental order book updates with initial snapshot.
L2 Delta sends an initial snapshot from the current cached delta book when available,
then publishes every changed price level for an instrument update together in
one atomic delta message.
type: "l2Delta", topic
l2delta.BTC-USD, and data.book.updateType: "snapshot". Its levels replace
both sides of your local book. No initial snapshot is sent if no cached book
exists yet; do not treat the subscription confirmation as book readiness.
Updates: Real-time, one message per instrument update batch
Delta Format:
- Each delta message contains every changed price level in the instrument’s update batch
- A message may contain multiple bid and ask changes; either side may be empty
levels[0]= bids (highest to lowest)levels[1]= asks (lowest to highest)- Each level:
{px, sz, n}whereszis the new absolute size at that price, not an amount to add, andnis always0for deltas sz: 0means remove the leveltimestampis Unix time in nanoseconds, not a sequence number