L2 vs L4 Order Books on Hyperliquid, Live and Historical
The Hyperdash Data API serves Hyperliquid order book data: the live L2 book, the book at any past minute, the L4 book with each order's wallet, and a book stream, with the plan each needs.
, 10 min read

The Hyperdash Data API serves Hyperliquid order book data in four forms: the live 20-level L2 book, the same book at any past minute since November 11, 2026 (kept 30 days), a WebSocket stream of book snapshots, and the L4 book, which lists up to 500 resting orders nearest the mid, each with the wallet that placed it and its place in the queue. L2, book history and the stream are on every plan, from $20 a month. The L4 book is on Growth and up.
Hyperliquid's own public API serves the current L2 book, up to 20 levels per side. It has no request for the book at a past time and no request that lists every order in a market with its owner.
Hyperliquid order book data at a glance
| Data | Hyperdash endpoint | Plan | History | Freshness |
|---|---|---|---|---|
| Live L2 book, 20 levels per side, with order counts | `GET /v1/markets/{coin}/book` | Every plan | Live only | Seconds |
| L2 book stream | `book` WebSocket channel | Every plan | About 15 minutes of replay | Up to 2 snapshots a second |
| Best bid and offer stream | `bbo` WebSocket channel | Every plan | About 15 minutes of replay | Up to 4 updates a second |
| L2 book at a past minute | `GET /v1/markets/{coin}/book/history` | Every plan | Since November 11, 2026, kept 30 days | Each minute |
| L4 book: up to 500 orders nearest the mid, with wallet, order id and queue position | `GET /v1/markets/{coin}/book/orders` | Growth and up | Live only | Under 15 seconds |
| Which resting orders paid for queue priority | `POST /v1/markets/{coin}/alo-priority/lookup` | Growth and up | About the last 10 minutes | Live |
Every endpoint reads Hyperdash's own Hyperliquid nodes, so requests never pass through Hyperliquid's public API or its rate limits.
What is the difference between L2 and L4 order books on Hyperliquid?
An L2 book groups resting orders by price and shows the total size at each level. An L4 book shows every individual order at each level, with the wallet that placed it, its order id, its placement time and its position in the queue.
| Level | What it shows | On Hyperliquid |
|---|---|---|
| L1 | Best bid and best ask only | Hyperdash `bbo` stream; Hyperliquid public `bbo` subscription |
| L2 | Total size and order count at each price level | Hyperdash Data API on every plan; Hyperliquid public API, up to 20 levels per side |
| L3 | Each individual order, without who placed it | The norm on centralized crypto exchanges that publish order-level data |
| L4 | Each individual order with its owner wallet, order id and placement time | Hyperdash Data API from Growth; your own node |
L4 exists because Hyperliquid is an on-chain order book. Every order is signed by a wallet, so the owner of each resting order is public in a way it never is on a centralized exchange.
L2 is enough for spreads, depth near the mid, slippage estimates for a given order size and charts. L4 answers the questions L2 cannot:
Is a wall one wallet or many?
500 BTC bid by one address behaves differently from 500 BTC spread across 60 traders.
Who placed the size?
A large resting order links to its wallet, and from there to that wallet's positions, trade history and PnL.
Where does an order sit in the queue?
Within one price, the L4 list order is the queue position, front first.
Is the liquidity real?
Orders that appear and vanish as price approaches show up order by order, not as a level that simply shrinks.
Which API gives Hyperliquid order book data?
Hyperliquid's public API serves the current book. The Hyperdash Data API adds history and order-level detail.
Hyperliquid's public API returns the current L2 book with the l2Book request, at most 20 levels per side, with an optional nSigFigs setting that groups prices into wider levels (info endpoint). Each level carries its total size and the number of orders. Its WebSocket offers l2Book and bbo subscriptions. An l2Book request weighs 2 against a limit of 1,200 per minute per IP (rate limits). Open orders come one wallet at a time through openOrders, which needs the wallet address. For past books, Hyperliquid uploads L2 snapshots to its hyperliquid-archive S3 bucket about once a month, with no guarantee of timely updates; the requester pays the transfer cost (historical data).
The Hyperdash Data API serves the same 20-level L2 book from its own nodes, plus three things the public API does not have: the book at any past minute over REST, the L4 book near the mid with the owner wallet of each order, and a lookup of which resting orders paid for queue priority. All of it comes with one API key, cursors for paging, and JSON, CSV or NDJSON output (conventions).
For a wider look at what the public API returns and where it stops, see Hyperliquid API Explained.
How do I get the live Hyperliquid L2 order book?
GET /v1/markets/{coin}/book returns the top 20 levels per side, one row per level, bids best first and then asks. Each row has the price, the total size and the number of orders at that level, and meta.time is the node's book time (reference). It costs 5 credits per request and works for perps, spot pairs such as @107 and HIP-3 markets such as xyz:TSLA.
curl "https://data.hyperdash.com/v1/markets/BTC/book" -H "Authorization: Bearer $HYPERDASH_API_KEY"
To follow the book continuously, subscribe to the book channel on wss://data.hyperdash.com/v1/stream. It pushes full 20-level snapshots, at most 2 per second, at 1 credit per event. The bbo channel pushes the best bid and offer up to 4 times a second. Both keep about 15 minutes of replay, so a client that reconnects with its last cursor picks up where it left off (streams).
A workspace can keep 2 markets live that no other customer is following. Markets other customers keep live do not count, and the slots are shared between the REST book, the book and bbo streams and the L4 book. A market's slot frees 15 minutes after your last use.
How do I get historical Hyperliquid order book snapshots?
GET /v1/markets/{coin}/book/history?time=... returns the book as Hyperdash's node held it right after the first block at or past the requested minute: the top 20 levels per side, best first (reference). Pass any time within the minute in epoch milliseconds.
The book one hour ago:
curl "https://data.hyperdash.com/v1/markets/BTC/book/history?time=$(( $(date +%s) * 1000 - 3600000 ))" -H "Authorization: Bearer $HYPERDASH_API_KEY"
Beyond the 40 levels, meta carries the sampled minute with its block height and block time, the best bid and ask, the mid, the spread, a crossed flag, and the resting notional within 10, 25, 50, 100 and 200 basis points of the mid. Those band notionals make slippage and depth studies a single request per minute instead of a calculation over every level.
Coverage, from the coverage page:
- The book is sampled once a minute since 2:45 PM EST on November 11, 2026. There is no earlier history.
- Samples are kept for 30 days, on every plan.
- A minute that was not sampled returns no rows, with
meta.minuteset to null. - Each request costs 20 credits.
Book history is L2 only. There is no per-order history: the L4 book is a live snapshot. Teams that need samples more often than once a minute, retention past 30 days from the day it is switched on, or recorded L4 history going forward can have them added to their plan by Hyperdash's integration team.
For other Hyperliquid datasets and how far back each one goes, see Hyperliquid Historical Data. For pulling book history into a strategy test next to trades, candles and funding, see Hyperliquid Data for Backtesting.
Where can I get Hyperliquid L4 order book data?
The Hyperdash Data API serves it at GET /v1/markets/{coin}/book/orders, from Hyperdash's own nodes, on Growth and up (reference). It returns the orders resting within a band around the mid, nearest first and up to 500 per request, refreshed in under 15 seconds.
- Band:
band_bpssets the half-width around the mid in basis points, 50 (0.5%) by default and up to 200 (2%) either side, or up to 10% on markets where the wider selection is enabled. - Size: up to 500 orders per request (100 by default), and no more than your plan's wallet-list cap: 500 on Growth, 1,000 on Scale and Enterprise.
- Order: nearest to the mid first, bids and asks interleaved. Within one side and price, list order is the queue position, front first.
- Fields: side, price, remaining size, original size, order id, owner wallet, placement time, time in force (
Alo,Gtc,IocorFrontendMarket), order type, reduce-only and trigger flags. - Meta: the mid, the band, the node time and block height, the total orders per side in the band, and whether the response was cut.
- Cost: 50 credits per request, plus 1 per order and 5 per node read.
A request for the 500 BTC orders nearest the mid, within a 0.5% band:
curl "https://data.hyperdash.com/v1/markets/BTC/book/orders?band_bps=50&limit=500" -H "Authorization: Bearer $HYPERDASH_API_KEY"
One response holds at most 500 orders and there is no next page. meta.total_bids and meta.total_asks give the full count in the band, and meta.truncated says the list was cut.
Order-level depth adds up quickly. At 12:13 AM EST on November 23, 2026, with BTC's mid at $61,183.50, 1,020 individual orders rested within 0.1% of it: 481 bids and 539 asks.
Do not re-sort L4 rows by time. It is the placement time, not the time an order joined the queue, so the list order is the only correct queue position.
Can I see the wallet behind each order on Hyperliquid?
Yes. Every row of the L4 book carries the user field, the wallet that owns the order. On Hyperliquid this is public data, because every order is a signed transaction from a wallet.
The Hyperliquid public API can show you one wallet's open orders if you already know the address. It cannot list the wallets behind the orders in a market. The Hyperdash L4 book goes the other way: start from the book and get the wallets.
Once you have a wallet, the rest of the Hyperdash Data API fills in who it is: its open positions and where they would be liquidated, its completed trades with realized PnL, its account value history and its PnL leaderboard rank. A large bid from a wallet with a long profitable record reads differently from the same bid placed by a wallet created yesterday, and L4 is what lets you tell them apart. How to Get Hyperliquid Wallet PnL and Trade History covers those wallet endpoints.
To see which resting orders paid for queue priority, pass their order ids to POST /v1/markets/{coin}/alo-priority/lookup, up to 500 order ids per call on Growth and 1,000 on Scale and Enterprise. It covers about the last 10 minutes and also needs Growth or up (reference).
Which Hyperdash plan do you need for order book data?
| Hobby | Starter | Growth | Scale | Enterprise | |
|---|---|---|---|---|---|
| Monthly price | $20 | $99 | $499 | $1,999 | Custom |
| Live L2 book and book stream | Yes | Yes | Yes | Yes | Yes |
| L2 book at a past minute since November 11, 2026 (kept 30 days) | Yes | Yes | Yes | Yes | Yes |
| L4 book with owner wallets | No | No | Yes | Yes | Yes |
| Queue priority lookup | No | No | Yes | Yes | Yes |
| Orders per L4 request | Not included | Not included | 500 | 500 | 500 |
| Stream connections | 2 | 5 | 25 | 50 | From 50 |
A request outside your plan returns 403 feature_not_in_plan and costs nothing (plans).
Custom order book data on any plan
Teams that need more than the documented endpoints can have it added to their plan by Hyperdash's integration team: L4 updates every block, a wider band, more frequent book samples, longer retention of book samples from the day it starts, or bulk Parquet drops into a warehouse, S3 or a message bus. Dedicated HyperCore nodes and a contractual 99.99% uptime SLA with 24/7 engineering support are part of Enterprise Solutions.
Teams that would rather build the book themselves from the raw block stream can run their own node and peer it with Hyperdash's node in Tokyo through Hyperliquid Peering, for $500 a month after a 7-day trial.
Ask your AI agent about the Hyperliquid order book
Connect an AI agent and ask in plain language: "Show the largest resting BTC orders near the mid and the wallets behind them."
- Connect the MCP server: the Hyperdash MCP server works with Claude, ChatGPT, Claude Code, Codex or Cursor; setup takes about a minute and you sign in with your Hyperdash account.
- Install the skills: Hyperdash skills give Claude Code, Codex or Cursor working knowledge of the API with one command; in Claude or ChatGPT, paste the skill link. The Data skill answers order book questions; the Build skill covers code on the book endpoints and the
bookstream. - Try a recipe: the Data API recipes include Liquidation levels near the price, Market positioning snapshot and Net buying split by position change.
- Read the docs: the Data API docs, the L4 order book reference, and the endpoint index for agents.
Further reading: Hyperliquid Backtesting Data and How to Read an Orderbook.
FAQ
Which API gives Hyperliquid order book data?
The Hyperdash Data API serves the live L2 book, the L2 book at any past minute since November 11, 2026 (kept 30 days), a book stream and the L4 book with owner wallets. Hyperliquid's public API serves the current L2 book, up to 20 levels per side.
Where can I get Hyperliquid L4 order book data?
From the Hyperdash Data API at GET /v1/markets/{coin}/book/orders, on Growth and up. It lists the orders nearest the mid, up to 500 per request, within a band of up to 2%, with the owner wallet, order id, placement time and queue position, refreshed in under 15 seconds. You can also build it from your own node's data.
How do I get historical Hyperliquid order book snapshots?
Call GET /v1/markets/{coin}/book/history with a time. It returns the top 20 levels per side at that minute, on every Hyperdash plan, for any minute since November 11, 2026 within the last 30 days. Hyperliquid also uploads L2 snapshots to its S3 archive about once a month.
What is the difference between L2 and L4 order books on Hyperliquid?
L2 shows the total size and order count at each price. L4 shows every individual order at each price, with the wallet that placed it, its order id, its placement time and its position in the queue.
Can I see the wallet behind each order on Hyperliquid?
Yes. The Hyperdash L4 book returns the owner wallet of each resting order near the mid, up to 500 per request. Hyperliquid's public API only returns open orders for a wallet you already know.
Is there L4 order book history?
Not in the Hyperdash Data API today. The L4 book is served live, and recorded L4 history going forward can be added to your plan by Hyperdash's integration team.
Get started
Get a Hyperdash Data API key, then call GET /v1/markets/BTC/book for the live book or GET /v1/markets/BTC/book/history for a past minute. Move to Growth when you need the wallets behind the orders. The Quickstart covers keys and the first request.