Skip to main content
Subscribe to real-time order book depth updates with bid/ask levels and quantities for trading instruments. WebSocket URL: wss://api.hotstuff.trade/ws Channel: orderbook

Parameters

Supported Methods

  • subscribe - Subscribe to orderbook updates
  • unsubscribe - Unsubscribe from orderbook updates

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