wss://api.hotstuff.trade/ws
Channel: orderbook
Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
jsonrpc | string | Yes | JSON-RPC version | "2.0" |
id | string | Yes | Request identifier for tracking | "1" |
method | string | Yes | Action to perform | "subscribe" or "unsubscribe" |
channel | string | Yes | Channel name | "orderbook" |
symbol | string | Yes | Trading symbol | "BTC-PERP", "ETH-PERP" |
Supported Methods
subscribe- Subscribe to orderbook updatesunsubscribe- 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.