New · Enhanced Datastreams are live — decoded, trade-ready market dataLEARN MORE →
← ALL PRODUCTS
Raw Datastreams

The unfiltered firehose, in real time

Every channel Hyperliquid emits — trades, L2 book, BBO, candles, fills — multiplexed over one resilient WebSocket, with sequence numbers and backfill so you never trade on a stale book.

stream.ts
copy
1const ws = new WebSocket(
2 "wss://stream.hyperliquidrpc.com/raw"
3);
4ws.onopen = () => ws.send(JSON.stringify({
5 method: "subscribe",
6 subscription: { type: "trades", coin: "ETH" },
7}));
8// → { px, sz, side, time, seq } per trade
Why Raw Datastreams

Built for production from day one

01

The full firehose

Every channel Hyperliquid exposes — l2Book, trades, bbo, candles, userFills, activeAssetCtx — multiplexed over one connection you manage.

02

Built for uptime

Managed connection pools with heartbeat monitoring and automatic reconnect. We absorb node restarts so your bot never misses a tick.

03

Gap-free by design

Sequence numbers on every message plus on-reconnect backfill so you can detect and recover from any gap deterministically.

04

Scale to every market

Subscribe to one coin or all of them. Throughput scales with your plan with no per-channel connection limits to juggle.

Start building
today

Spin up an API key in seconds. Free tier included — no credit card required.