Skip to main content

Level 1 vs level 2 vs level 3 vs L4 market data, explained with one order book

10 min read

Level 1 is the best bid and ask, level 2 every price, level 3 every order, and L4 every order with its wallet. One illustrated BTC order book shows what each level keeps.

0xArchive market data guide · order books

You have traded around a bid wall. 40 BTC sitting a few dollars under the price, so your stop goes under it. That wall is level 2 market data, and level 2 cannot tell you whether it is forty traders or one wallet.

Level 1 is the best bid, the best ask and the last trade. Level 2 is every price in the book with the total size resting there. Level 3 is every single order. L4 is every order plus the wallet that placed it, which is what 0xArchive records for Hyperliquid.

Illustration of one BTC order book at four levels. L1 is the best bid and ask. L2 and L3 list eight bid prices, one as totals and one as single orders. L4 regroups the same orders by wallet, with one wallet far larger than the rest.
Illustration: one bitcoin order book read four ways. L1 is the best bid and the best ask, 100,000 and 100,001, and nothing below them. L2 shows a 40.0 BTC wall at 99,997. L3 shows 36.0 BTC of it is a single order. L4 regroups the same 30 orders by wallet: one wallet holds 61.0 of the 74.2 BTC on the bid side, across six orders at two prices. The next largest holds 1.9.

Level 1 market data is the best bid and the best ask

An order book, or limit order book, is every buy and sell order resting on an exchange, sorted by price. Level 1 is the top of it: the highest bid, the lowest ask, the size at each, and usually the last trade. Most price tickers and quote screens run on it.

It tells you the price and what it costs to cross the spread. In the example the spread is $1, and that is everything level 1 knows about the book.

At level 1, the 40 BTC wall under the price does not exist.

Level 2 data adds up every order resting at each price

Level 2 data is market by price. Every price in the book gets one row: the price, the total size resting there, and on Hyperliquid, how many orders it took.

This is the order book most traders picture, and it answers the depth questions. How much you can fill near the price. How far a big market order slips. Which side is heavier, which is what order book imbalance measures.

What you measureWhat it tells youIn the example
Order book depthHow much you can fill near the price48.6 BTC bid within $5 of the best bid
SlippageHow far a market order moves the priceA 45 BTC market sell fills down to 99,996, an average of 99,997.16
ImbalanceWhich side of the book is heavierBids outweigh asks 4.9 to 1 within $5, 48.6 BTC against 10.0

Most of that bid weight is one 36 BTC order, and level 2 has no way to show it.

Level 3 data splits each price back into single orders

Level 3 data is market by order: every resting order on its own, with an ID and a size, in the order it joined the queue. A full level 3 feed also carries every add, change and cancel. On most exchanges that is where it stops, and the orders carry no owner.

Now the 40 BTC wall has a shape: one big order and five small ones. You can see where your own order sits in the queue and how long each order lives. The five equal orders at 99,993 still read as five separate buyers.

Illustration of two 25 BTC bids, each five 5 BTC orders. At L2 and L3 they look identical. At L4 one is five wallets and the other is one wallet. After one wallet cancels, 20 BTC is left in the first and none in the second.
Illustration: the same 25.0 BTC at one price, five orders of 5.0 BTC each. Level 2 and level 3 show identical books. L4 shows five wallets on the left and one on the right. When one wallet cancels, the left keeps 20.0 BTC and the right keeps nothing.

L4 adds the wallet behind every order

L4 is level 3 plus the wallet that placed each order, with every add, change and cancel arriving block by block. It exists because Hyperliquid runs its order book on chain, where a wallet signs every order. Hyperliquid's own order book server calls the full feed l4Book.

At L4, the five buyers at 99,993 are one wallet, and one wallet can pull all five at once.

In the example, that one wallet holds 61 BTC across the book's two walls. Check whether it also quotes offers on the other side. If it does, you are looking at a market maker who moves both quotes together. If it does not, it is a buyer with a plan, and you can watch whether it keeps rebuilding the bid.

Level 3 means something different in stocks

If you learned these terms trading stocks, the names shift. On Nasdaq, Level 2 lists quotes by market maker, and Level 3 is the screen market makers use to enter and change their quotes rather than a deeper data feed.

NameStocks (Nasdaq)Crypto order book data
Level 1Best bid, best offer and last saleBest bid, best ask and last trade
Level 2Quotes listed by market makerTotal size at every price
Level 3Quote entry for registered market makersEvery individual order
L4Not usedEvery order with its wallet, on Hyperliquid

Pick the level of market data by the question you are asking

Start at the lowest level that answers your question. Level 1 runs a price alert. Level 2 runs a depth chart, a slippage estimate or an imbalance signal. Level 3 runs queue position and fill simulation. L4 runs anything that needs to know who: whale tracking, telling a market maker from a buyer, following one wallet's orders across a day. The trade-offs between snapshots and order-level history are in when checkpoint history is enough and when you need order-level depth.

Four cards, one per level. L1 keeps the best bid and ask. L2 keeps every price with its size and order count. L3 keeps every order with its ID and every change. L4 adds the wallet that placed each order. Each card shows one sample row.
Illustration: what each level keeps, what it lets you ask, and one row from the same order book at that level. Each row adds a field to the one above: the order ID at L3, the wallet at L4.

Hyperliquid has L4 and Lighter has L3 on 0xArchive

0xArchive records Hyperliquid at L4 and builds full-depth L2 from that same book. At 14:03:59 UTC on 2026-09-15, the Hyperliquid BTC book alone held 58,959 resting orders. The Hyperliquid order book data guide covers reconstruction and history.

Lighter is recorded at L3, and every order there carries the account number that placed it. The Lighter L3 guide walks through the fields.

LevelHyperliquidLighter
L1 and L2Full depth since 2026-03-10, built from the L4 bookAggregated price levels
L3Included in L4Every order with its account number, up to 250 a side per snapshot
L4Every order with its wallet, as snapshots, history and a diff streamNot offered

Run this analysis from an agent

L2, L3 and L4 are all endpoints an agent can call. 0xArchive ships an MCP server, so Claude and other AI agents can pull L2, L3 and L4 books in plain language. There is a Claude Code skill for terminal workflows and an agentic gateway for agents that pay per call. Start with the agent surfaces overview or the guide to replayable market data for MCP, CLI and agent workflows.

Route references

Use the order book routes reference for L2 and L4 snapshots and history, the Lighter REST reference for Lighter's L3 book, and the WebSocket L4 order book reference for streaming and replay. The order book depth guide covers which level each workflow needs.

For current API availability and plan details, use the Hyperliquid data API, data catalog, pricing, and status.