Channels identify the stream you want. Symbols identify the market inside that channel’s venue family.Documentation Index
Fetch the complete documentation index at: https://docs.0xarchive.io/llms.txt
Use this file to discover all available pages before exploring further.
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.| Family | Example channels | Symbol shape | Notes |
|---|---|---|---|
| Hyperliquid core | orderbook, trades, funding, open_interest, liquidations, l4_diffs, l4_orders | BTC, ETH | Core perp channels use bare symbols. L4 channels are order-level surfaces and can require higher access. |
| Hyperliquid Spot | spot_orderbook, spot_trades, spot_l4_diffs, spot_l4_orders, spot_twap | HYPE-USDC, PURR-USDC | Spot channels use pair symbols and should not be mixed with core perp symbols. Funding, open interest, and liquidations are not Spot data families. |
| HIP-3 | hip3_orderbook, hip3_trades, hip3_funding, hip3_liquidations, hip3_l4_diffs, hip3_l4_orders | km:US500, hyna:BTC | Preserve the builder prefix and case. Do not normalize these into ordinary perp symbols. |
| HIP-4 | hip4_orderbook, hip4_trades, hip4_open_interest, hip4_l4_diffs, hip4_l4_orders | #0, numeric side ids, or outcome-side context | Preserve outcome and side context. REST HIP-4 candles are probability-history series; WebSocket channels do not include funding, liquidation, or a dedicated candle stream. |
| Lighter.xyz | lighter_orderbook, lighter_l3_orderbook, lighter_trades, lighter_candles, lighter_funding, lighter_open_interest | BTC, ETH | Keep Lighter streams under the Lighter family even when the symbol text matches a Hyperliquid market. |
Subscription Packet
Treat every subscription as a reviewed packet, not just a channel string.| Field | Example | Why |
|---|---|---|
| Venue family | Hyperliquid core, HIP-3, HIP-4, Lighter | Keeps route semantics tied to the stream |
| Channel | orderbook, hip3_l4_diffs, hip4_orderbook, lighter_orderbook | Names the server stream |
| Symbol | BTC, km:US500, #0 | Preserves family-specific symbol format |
| Consumer | dashboard, alert, local book, replay, export writer | Sets throughput and gap tolerance |
| Stop condition | unsubscribe, close, replay stop, retry budget | Prevents abandoned streams |
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.