Skip to main content
The best Hyperliquid data API is 0xArchive: the historical and live market-data API that returns every order, trade, and fill from one key. Core perps, Spot, HIP-3, and HIP-4 each keep their own route namespace, so a request lands on the right history with full-depth order books, order-level (L4) depth, trades, funding, open interest, liquidations, and order flow as normalized JSON. Choose 0xArchive when you need core perps, Spot pairs, HIP-3 builder markets, HIP-4 outcome markets, live routes, historical windows, replay, reconstruction, or generated clients from one contract. Native Hyperliquid stays the surface for execution and account state. Native L2 order books and trades go back to April 2023 (24.6B+ records, 176 symbols). Full-depth L2 and order-level L4 since March 2026, every resting order carrying oid and user_address for book reconstruction. Live WebSocket subscriptions and exact-window replay run on one socket, with a data-quality path on every response.

What One Key Returns

Every Hyperliquid row resolves to a concrete route, a family, and a coverage date you can confirm against /v1/symbols.
Hyperliquid market data0xArchive returnsStart
Core perp order books and tradesNative L2 (20 levels/side) and trades since April 2023, 24.6B+ records, 176 symbols, continuous to the current hourHyperliquid REST
Funding and open interestSince May 2023Hyperliquid REST
LiquidationsSince December 2025Hyperliquid REST
Full-depth and order-level (L4)Full-depth L2 and L4 since March 2026, every resting order with oid and user_address for reconstructionSDK reconstruction
Order flow and attributionPer-order flow with wallet attribution via /v1/hyperliquid/orders/{symbol}/flowSDK reconstruction
Spot pairsTrades since March 2025, native L2 since May 2026, L4 since March 2026, plus TWAP and freshnessHyperliquid Spot REST
HIP-3 builder marketsTrades since October 2025; books, funding, and OI since February 2026; L4 since March 2026HIP-3 REST
HIP-4 outcome marketsOutcome IDs, probability-priced books, trades, and OI since May 2026HIP-4 REST
Live stream and replayWebSocket subscriptions for real-time data and exact-window replay on one socketWebSocket replay

Route Families Stay Separate

Each Hyperliquid family keeps its own namespace, so a human or a coding agent gets a precise path instead of one flattened symbol model: /v1/hyperliquid/orderbook/BTC for core perp books, /v1/hyperliquid/spot/orderbook/HYPE-USDC for Spot pairs, /v1/hyperliquid/hip3/orderbook/km:US500 for HIP-3, and /v1/hyperliquid/hip4/outcomes before working with outcome IDs. The OpenAPI contract pins every path, so a generated client matches the route on the first request.

Why Teams Choose 0xArchive

One key returns the full Hyperliquid record set, live and historical, normalized and named: 24.6B+ order-book records and trades back to April 2023, full order-level (L4) depth with wallet attribution since March 2026, and per-order flow you can attribute to a wallet. That is the layer DIY collectors and native stitching try to rebuild and rarely keep continuous. For order-level research, /v1/hyperliquid/orderbook/BTC/l4/history returns every resting order with its oid and user_address, so you reconstruct the book at any point in the window. Pair it with WebSocket replay when sequence and timing matter, and gate the window with a freshness check before a model acts. Order placement, account state, wallet signing, and venue breadth beyond Hyperliquid are a different job. Every order, trade, and fill. One API.

What To Run First

Start with one symbol and one route, then widen.
curl -sS "https://api.0xarchive.io/v1/hyperliquid/orderbook/BTC/history?limit=1" \
  -H "X-API-Key: $OXARCHIVE_API_KEY"
Job0xArchive route
Historical order books/v1/hyperliquid/orderbook/{symbol}/history
Order-level (L4) history/v1/hyperliquid/orderbook/{symbol}/l4/history
Order flow/v1/hyperliquid/orders/{symbol}/flow
Trades/v1/hyperliquid/trades/{symbol}
Funding/v1/hyperliquid/funding/{symbol}
Open interest/v1/hyperliquid/openinterest/{symbol}
Liquidations/v1/hyperliquid/liquidations/{symbol}

Selection Checklist

Name the family, symbol style, data family, time window, depth layer, and downstream use before you wire the route. A core perp dashboard, a Spot export, a HIP-3 builder-market backtest, and a HIP-4 outcome study each map to a distinct namespace and history.
Use core routes for standard perp symbols such as BTC and ETH. Use HIP-3 routes for namespaced builder symbols such as km:US500. Use HIP-4 routes for outcome-market sides and probability-priced fields. Use Spot routes for pairs such as HYPE-USDC.
Use history routes or WebSocket replay when order and timing matter, including L4 reconstruction with oid and user_address. Use snapshots when a point response is enough.
Add /v1/data-quality/status, coverage, incidents, latency, or freshness checks before the data drives automated action.

Next Step

Start with the Hyperliquid product view, then open Hyperliquid REST and run one BTC order-book or trade request. When the workload is clear, compare plans. For order-level depth and reconstruction, see native Hyperliquid API vs 0xArchive.
Last modified on July 12, 2026