Skip to main content
WSS
Connect to 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.
Initial Response: A message with outer 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} where sz is the new absolute size at that price, not an amount to add, and n is always 0 for deltas
  • sz: 0 means remove the level
  • timestamp is Unix time in nanoseconds, not a sequence number
Apply all levels in a delta message atomically before exposing the updated local book. The subscription snapshot establishes a timestamp cutoff: the network endpoint suppresses queued deltas at or before that snapshot’s timestamp.
The current wire format has no seq, bookVersion, checksum, or resume cursor. Timestamps alone cannot prove that all intermediate deltas arrived. A slow or interrupted consumer can miss updates without a gap notification. If continuity is uncertain, discard the local book, reconnect and subscribe to l2Delta again, then wait for its initial snapshot before applying deltas. An independently requested l2Snapshot is not a sequenced handoff into an existing delta stream. Use the periodic snapshot stream when your application needs independent complete depth views.

Connection and Limits

See connection management for reconnect behavior and public rate limits for connection budgets.
L2 deltas subscribe
type:object

Schema defaults on this request are playground example prefills, not omitted-field defaults accepted by the network endpoint.

L2 deltas l2Delta
type:object

Network-published l2Delta

L2 deltas subscribed
type:object
L2 deltas unsubscribed
type:object