Credit Cost
0.5 per coin per minute
Processing
Realtime
- Wire-compatible with
wss://api.hyperliquid.xyz/wsl2Booksubscriptions - same channel name, samelevelsshape. coinis optional on GoldRush. Omit it to stream the entire L2 order book across every asset on a single subscription. The public Hyperliquid API requirescoinand locks each subscription to one asset at a time.- When
coinis omitted, the optionalmarketTypesfilter selects which market families to include. It defaults to["perp"]only. - Pass
"marketTypes": ["spot"], or"marketTypes":["outcome"], or a mix (e.g."marketTypes": ["perp","spot"]), or use the wildcard"marketTypes": ["*"]to opt into spot, perps, outcome, and any future market types. - No 1000-subscription-per-IP cap - multiplex hundreds of
l2Booksubscriptions on a single connection. - For OHLCV candles instead of raw book state, use the Streaming API OHLCV streams.
coin is omitted, a credit rate of 50 credits per minute subscribed is applied.
Endpoint
Your GoldRush API key. Passed as a query parameter at connection time - no
Authorization header is used.Subscribe
Send this JSON message after the connection is established:Example
Pick the subscription shape that matches the coverage you want:Unsubscribe
Send the samesubscription body with method: "unsubscribe":
Unsubscribe matches subscriptions by exact body. A subscription created with
coin: ["BTC", "ETH"] is a different subscription from one created with coin: "BTC" or coin: "ETH".You cannot unsubscribe a partial set of coins from an existing multi-coin subscription. To narrow the set, unsubscribe the original coin array in full, then resubscribe with the smaller list:Book depth
l2Book carries the top of the book, not the complete book: the best 20 price levels per side by default, up to 100 with nLevels. With nSigFigs set, prices are rounded into buckets. For every price level on both sides at full precision, use l2BookDiff.
Streamed message
Each message haschannel: "l2Book" and a data payload with the current book snapshot for the subscribed coin.
Related endpoints
l2BookDiff
subscribe to real-time L2 order book (initial snapshot + diffs) for all Hyperliquid assets over WebSocket.
l2BookDiff2
subscribe to a diff-only L2 order book stream with per-coin sequence numbers and a server epoch for gap detection.
l4Book
subscribe to GoldRush’s order-level Hyperliquid book - initial snapshot of every resting order plus per-block diffs with full metadata.
l4BookUpdates
subscribe to a strictly-ordered, diff-only order-level (L4) book stream with per-coin sequence numbers and a server epoch for gap detection.
/info and /ws APIs at hypercore.goldrushdata.com, with no rate limits and every fill, order, trade, funding and ledger event retained from the start of HyperCore coverage.
Last reviewed: 2026-07-28