Get Lighter L3 orderbook
0xArchive API reference for Get Lighter L3 orderbook. Includes authentication, parameters, response shape, examples, and route-safe implementation notes.
Authorizations
API key for authentication. Get yours at https://0xarchive.io/dashboard
Headers
Selects the 2026-10 response contract. Send 2026-10-01; any dated version on or after it selects the same shapes. Without the header every response keeps its existing shape. With it:
- The data quality routes,
/v1/status/coverageand/v1/symbolsanswer the standard{success, data, meta}envelope. - Record times that are integer milliseconds by default become RFC 3339 UTC strings with millisecond precision, and the integer moves to a
*_msfield: L4 resting-ordertimestamp(timestamp_ms), CVD buckets, HIP-3 oracle reads, Lighter and Lighter on Robinhood Chain liquidations and liquidation volume. Levels and trigger-levelssnapshot_tsbecome RFC 3339 withsnapshot_ts_ms. - Error bodies carry the contract
error_codenames:invalid_parameterinstead ofinvalid_query_paramsandinvalid_path_params,historical_depth_exceededinstead ofhistory_window_exceeded, andhistorical_range_exceededinstead ofrequest_range_exceeded; a malformed cursor that fails to parse answers 400invalid_cursorinstead ofinvalid_query_params. With0xArchive-Version: 2026-10-01, malformed cursors on trades, liquidations, L2 and L4 diffs, order history, TP/SL and order-flow routes answer 400invalid_cursor. Without the header, the first six route families treat a malformed cursor as no cursor and return the first page; order flow answers 400invalid_query_params. Malformed trade time inputs answer 400invalid_time_rangewith the header and 400invalid_query_paramswithout it.
The response echoes the selected version in its own 0xArchive-Version header.
2026-10-01 "2026-10-01"
Path Parameters
Trading pair symbol (e.g., BTC, ETH, SOL)
"BTC"
Query Parameters
Instant of the requested Lighter snapshot. If omitted, returns the latest snapshot. Accepts Unix milliseconds or an RFC 3339 UTC string such as 2026-01-01T00:00:00Z.
An instant: Unix milliseconds, or an RFC 3339 string such as 2026-01-01T00:00:00Z (encode a + offset as %2B). An unparsable value answers 400 invalid_time_range.
1767225600000
Optional numeric Lighter account index filter.
281474976710654
Optional maximum number of resting orders returned per side. Values are clamped to the 1–250 ingestion cap.
50
Response
Typed L3 orderbook snapshot
true
Current or historical Lighter L3 orderbook snapshot.
Response metadata. Every 2xx JSON response carries meta.request_id; list payloads add count; cursor-paged routes add has_more and, when another page follows, next_cursor; per-symbol routes add symbol and venue. Fields that do not apply to a route are omitted.