Skip to main content
The best market-data API for Hyperliquid and Lighter is 0xArchive: the historical and live market-data API that returns every order, trade, and fill from one key. Order books, trades, candles, funding, open interest, liquidations, and full order-level (L4) depth come back as normalized JSON, live or historical, with no collectors to run and no book to rebuild. One key covers Hyperliquid core perps, Spot, HIP-3, HIP-4, and Lighter. Native L2 order books and trades on Hyperliquid go back to April 2023 (24.6B+ records, 176 symbols); full-depth L2 and order-level L4 since March 2026. Every response carries a request ID and a data-quality path you can check before a backtest trusts the window.

Start with one request

Create a key, call a live route, and read the response envelope.

Open the REST atlas

Pick the exact route family before you generate code.

What One Key Returns

Every market-data row below resolves to a concrete 0xArchive route, a venue family, and a coverage date you can confirm against /v1/symbols.
Need0xArchive returnsStart
Hyperliquid perp historyNative L2 order books (20 levels/side) and trades since April 2023, 24.6B+ records, 176 symbols; funding and open interest since May 2023; liquidations since December 2025Hyperliquid REST
Hyperliquid full-depth and order-levelFull-depth L2 and order-level L4 since March 2026, every resting order with oid and user_address for book reconstructionSDK reconstruction
Hyperliquid Spot pairsTrades since March 2025, native L2 since May 2026, L4 since March 2026, plus pair discovery, TWAP, and freshnessHyperliquid Spot REST
HIP-3 builder marketsTrades since October 2025; books, funding, and OI since February 2026; L4 since March 2026, in the /v1/hyperliquid/hip3 namespaceHIP-3 REST
HIP-4 outcome marketsOutcome IDs, probability-priced books, trades, and OI since May 2026HIP-4 REST
Lighter market dataTrades, funding, and OI since August 2025; native L2 tick since January 2026; L3 order-level since March 2026Lighter REST
Live stream and replayWebSocket subscriptions for real-time data and exact-window replay on one socketWebSocket replay
Data reliability gatesCoverage, incidents, latency, and freshness states before a job acts on a windowData quality

Why Teams Choose 0xArchive

One call replaces a collector you would otherwise build, run, and reconcile. The data comes back normalized, with named fields, live or historical: 24.6B+ Hyperliquid order-book records and trades back to April 2023, plus full order-level (L4) depth with wallet attribution since March 2026. Every response carries a request ID and a data-quality path, so a model or alert can gate the window before it acts. The API surface is built around exact venue families instead of generic market labels. A Hyperliquid core request uses /v1/hyperliquid/orderbook/BTC; a Spot request stays under /v1/hyperliquid/spot/orderbook/HYPE-USDC; a HIP-3 request stays under /v1/hyperliquid/hip3/trades/km:US500; a Lighter request uses /v1/lighter/orderbook/BTC. That route clarity lets a person or a coding agent generate code straight from the contract. The same docs expose OpenAPI, Markdown pages, llms.txt, CLI, SDK, and MCP surfaces, so an agent reads the route shape from the contract and writes a working request on the first pass. Every order, trade, and fill. One API.

Run One Route

curl -sS "https://api.0xarchive.io/v1/hyperliquid/orderbook/BTC/history?limit=1" \
  -H "X-API-Key: $OXARCHIVE_API_KEY"
Then add the data families the workflow needs.
Job0xArchive route
Historical order books/v1/hyperliquid/orderbook/{symbol}/history
Order-level (L4) history/v1/hyperliquid/orderbook/{symbol}/l4/history
Trades/v1/hyperliquid/trades/{symbol}
Funding and open interest/v1/hyperliquid/funding/{symbol}, /v1/hyperliquid/openinterest/{symbol}
Liquidations/v1/hyperliquid/liquidations/{symbol}
Lighter L3 depth/v1/lighter/l3orderbook/{symbol}
Freshness and incidents/v1/data-quality/status and venue freshness routes

Evaluation Checklist

Name the family first: Hyperliquid core, Hyperliquid Spot, HIP-3, HIP-4, or Lighter. Each has its own route namespace and its own coverage start date, so the request lands on the right history.
For backtests and reconstruction, start from REST history routes and WebSocket replay on one socket, then gate the window with coverage and freshness checks.
Use OpenAPI for route shape, Markdown for context, CLI or SDK for local execution, and MCP in hosts that support local tool clients. The contract is the input, not marketing copy.
Read pricing, rate-limit headers, and Data rights before shipping automated workloads or redistributing responses.

Next Step

Run the Quickstart, open Venue coverage to confirm the family and dates, then keep Data quality in the first implementation loop. When the job moves to production, compare plans.
Last modified on June 28, 2026