Skip to main content
L4 is the whole book order by order: resting orders across all served levels with their own oid and user_address, plus the diffs to roll the book forward and reconstruct it at any point in time, not the aggregated levels of L2. L4 is the deepest order-book grain 0xArchive serves and carries the fields needed for deterministic order-level reconstruction. It is a Hyperliquid-family surface: Hyperliquid core, Spot, HIP-3, and HIP-4 all expose L4. Lighter exposes individual orders through L3 instead, so do not reach for an L4 route on Lighter. Use L4 when you need microstructure, queue position, per-order user attribution, or a book you can reconstruct the same way twice; use L2 when aggregated levels are enough.

Get an L4 snapshot

Pick your venue. The path and symbol format change per family.
/v1/hyperliquid/orderbook/{symbol}/l4, /l4/diffs, /l4/history. Plain perp symbols such as BTC and ETH.

Request parameters

Current snapshot routes return one book object in data. History routes return arrays of snapshot objects, and diff routes return arrays of diff events. The cursor type and page-size cap are route-specific as shown above. Use /l4/history with start and end for a past window; timestamp is for the snapshot-at-time route. Route availability is route/family/symbol/schema-specific. Verify the exact endpoint, selected account, and API key status before relying on the response. Plans govern capacity and request windows, not route access; inspect the live route response before relying on it.

Example response

bids and asks are truncated above. That snapshot carried 24,501 bids and 18,101 asks: the entire resting book, each order with its own oid and user_address.

Response fields

Responses use the { success, data, meta } envelope; the fields below are data. price and size are numbers in L4 payloads. Hyperliquid and Lighter L2 routes use px/sz decimal strings for aggregated levels, while the Lighter L3 route uses numeric price, remaining_size, and original_size fields. Check types per route; the Endpoint reference carries the exact types, and full field meanings live in the field dictionary.

Reconstruct from diffs

0xArchive runs collection, backfill, and reconstruction server-side and returns the reconstructed checkpoint/snapshot. To follow the book over time, take an l4 checkpoint, then apply l4/diffs in order, or pull l4/history for a window. Diff items may carry an optional insert_before field (an order ID, or null): for a new ALO order granted queue priority, it names the resting order this one is inserted ahead of within its price level. Null or absent means tail append. To reproduce queue order when rolling a checkpoint forward, insert the new order directly before that oid instead of appending. The field is populated on data from 2026-07-21 onward. Depth truncation is by order count, so the orders at a depth cut can differ from responses served before that date. diffs_applied: 0 means a clean checkpoint; a higher number means it was rolled forward from the last one. If your application keeps a continuously updated local book, apply ordered diffs/replay after that checkpoint; a snapshot-only consumer can use the returned state directly. When sequence and gap handling matter, move to WebSocket L4 order book and WebSocket replay, or let SDK reconstruction hold local book state for you. A current L2 snapshot is fine for inspecting the book or a spread. It is not the same dataset as a replayable L4 history window: what depth, which venue family, what timestamp semantics, and whether the historical book can be reconstructed the same way twice.

Stream it live

Order-level updates stream on l4_diffs and l4_orders for Hyperliquid core; Spot, HIP-3, and HIP-4 use prefixed variants (spot_l4_diffs, hip3_l4_diffs, hip4_l4_orders, and so on). For sequence and gap handling, see WebSocket L4 order book and WebSocket replay.
The full channel matrix is on WebSocket channels.

Export in bulk

L4 books export as the l4_orderbook schema ($4/GB, $12.50 minimum), and order-level events export as l4_orders ($4/GB, $12.50 minimum), delivered as Parquet with ZSTD compression. Keep L2, L3, and L4 in separate tables. Build a selection in the Data catalog; columns and coverage keys are on Export schemas.

Other depths

L2 order book

Aggregated price levels (px, sz, n) across every venue family.

L3 order book

Individual orders on Lighter, order-level detail without full lifecycle.

Next

Start from Order books for the depth overview, Order history and Order flow for the lifecycle around the book, WebSocket L4 order book when sequence matters, or Data quality before any long historical window.
Last modified on September 1, 2026