Examples
Unsubscribe
Channel Selection
Choose channels the same way you choose REST route families. Hyperliquid core channels are for standard perp symbols such asBTC and ETH. Spot work should use Spot-specific route and stream context when available. HIP-3 channels keep the builder prefix, HIP-4 channels keep outcome identifiers, and Lighter channels stay under the Lighter family.
Channel Family Matrix
Use this matrix to avoid treating every WebSocket channel as the same stream.Native userFills terminology
Native Hyperliquid userFills maps to 0xArchive trades. 0xArchive has no WebSocket channel named userFills; do not subscribe to a nonexistent fill channel. Use trades and filter the returned rows client-side when attribution is needed.
Subscription Fields
Record these fields for each active subscription.
Store the checklist with active connection state. On reconnect, restore from this checklist list. On unsubscribe, remove it from the list before trusting local subscription state.
Common Channel Mistakes
Do not send a HIP-3 symbol to a Lighter channel. Do not strip a HIP-3 prefix before subscribing. Do not treat HIP-4 outcome identifiers as ordinary perp symbols. Do not add Spot pairs to a generic perp stream; use Spot channel names such asspot_orderbook and keep dashed pair symbols visible in code.