Skip to main content

Credit Cost

0.5 per coin per minute

Processing

Realtime
Estimate your monthly cost for this API using the Pricing Calculator.
  • Wire-compatible with wss://api.hyperliquid.xyz/ws l2Book subscriptions - same channel name, same levels shape.
  • coin is optional on GoldRush. Omit it to stream the entire L2 order book across every asset on a single subscription. The public Hyperliquid API requires coin and locks each subscription to one asset at a time.
  • When coin is omitted, the optional marketTypes filter 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 l2Book subscriptions on a single connection.
  • For OHLCV candles instead of raw book state, use the Streaming API OHLCV streams.
Note: When coin is omitted, a credit rate of 50 credits per minute subscribed is applied.

Endpoint

string
required
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:
string
required
Always "subscribe".
object
required

Example

Pick the subscription shape that matches the coverage you want:

Unsubscribe

Send the same subscription 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 has channel: "l2Book" and a data payload with the current book snapshot for the subscribed coin.
string
Always "l2Book".
object

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.
See all Hyperliquid endpoints: Overview hub · WebSocket API reference Served by the GoldRush Hyperliquid API: a drop-in replacement for the public /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