Documentation Index
Fetch the complete documentation index at: https://goldrush.dev/docs/llms.txt
Use this file to discover all available pages before exploring further.
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:Always
"subscribe".Example
Pick the subscription shape that matches the coverage you want:| Subscribe with | What you receive |
|---|---|
{"type":"l2Book","coin":"BTC"} | L2 snapshots for BTC only |
{"type":"l2Book"} | L2 snapshots for every perp coin (default: marketTypes: ["perp"]) |
{"type":"l2Book","marketTypes":["spot"]} | L2 snapshots for every spot coin |
{"type":"l2Book","marketTypes":["outcome"]} | L2 snapshots for every HIP-4 outcome market |
{"type":"l2Book","marketTypes":["perp","spot"]} | L2 snapshots for perps + spot |
{"type":"l2Book","marketTypes":["*"]} | L2 snapshots for every coin (perp + spot + outcome, plus future types) |
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:Streamed message
Each message haschannel: "l2Book" and a data payload with the current book snapshot for the subscribed coin.
Always
"l2Book".