Skip to main content
The GoldRush Hyperliquid WebSocket API is a drop-in replacement for wss://api.hyperliquid.xyz/ws. For the channels GoldRush supports, subscription payloads, channel names, and message shapes are byte-for-byte identical to the public Hyperliquid feed. The only difference is the connection URL - authentication is a required key query parameter, so no header changes are needed in your client.

Endpoint

string
required
Your GoldRush API key. Passed as a query parameter at connection time.
The connection URL - including the key - is visible to any client that opens the socket. Do not ship your API key (cqt_…) to a browser or mobile app. For client-side use, mint a short-lived Ephemeral Key on your backend and pass that as key=gr_ek_… instead. It’s scoped to your API key, expires in 30 minutes, and is safe to embed. See Recipe B: browser WebSocket with auto-refresh.

Comparison with the public Hyperliquid WebSocket

For plans and pricing, see the Hyperliquid API without rate limits page. The public WebSocket’s subscription cap and GoldRush’s wildcard subscriptions are covered in rate limits.

Available subscriptions

Order book

Stream the Hyperliquid order book in real time - three channels, from aggregated L2 snapshots to full order-level (L4) detail. Omit coin on l2Book or l2BookDiff to stream every asset on a single subscription, which the public WebSocket’s 1000-subscription-per-IP cap makes impractical. Guides: L2 order book (snapshots), L2 order book diffs (every asset on one subscription) and L4 order book (order-level).

Wallet activity

Looking for candle, trades, bbo, or allMids? These public Hyperliquid market-data channels aren’t mirrored on the GoldRush WebSocket - use the GoldRush equivalents instead:
  • OHLCV candles - the Info API candleSnapshot endpoint, which covers HIP-3 markets too.
  • Trade tape - allFills streams every fill on HyperCore (the global trade tape); userFills narrows it to specific wallets.
  • Best bid/offer and mids - derive top-of-book from l2Book, or read mark and mid prices for the full universe from metaAndAssetCtxs.

Limits

No 1000-subscription-per-IP cap. On l2Book and l2BookDiff, filter parameters are optional - omit coin to stream the full L2 book across every asset on a single subscription. The wildcard defaults to perps only (marketTypes: ["perp"]); pass ["spot"], ["outcome"], a mix, or ["*"] to opt into spot, outcome, and future market types. l2BookDiff additionally accepts an array of coin symbols for a fixed multi-asset subscription. l4Book requires coin and is one-asset-per-subscription. See Limits & Connections for details.

Billing

Subscriptions bill per minute, in whole minutes, with a minimum of one full minute per subscription. There is no proration: a subscription that lives 200 milliseconds costs the same as one that lives 60 seconds, and every reconnect starts a new subscription that pays the minimum again. See Billing for the per-minute rates, the ceil rounding table, and worked examples.