wss://api.hyperliquid.xyz/ws. The SDK discovers this URL from the wsUrl field in the GET /providers response. If you’re using the SDK, see Streaming instead.
For the full WebSocket protocol specification (message format, keepalive, and subscription channels), see the Hyperliquid WebSocket documentation.
SDK Channel Mapping
The SDK maps between normalized channel names and Hyperliquid-native channels:| SDK channel | HL subscription type | SDK event type |
|---|---|---|
prices | allMids | PricesResponse |
orderbook | l2Book | OrderbookResponse |
trades | trades | Fill[] |
candle | candle | Candle |
orderUpdates | orderUpdates | Order[] |
fills | userFills | Fill[] |
positions | webData2 | Position[] |
spotBalances | spotClearinghouseState | SpotBalance[] |
Rate Limits
Hyperliquid enforces per-connection limits:- 1000 total subscriptions per WebSocket connection
- 10 user-specific subscriptions per connection (orderUpdates, userFills, webData2)