Hyperliquid - Full-Depth L2 Order Book

Get Hyperliquid full-depth L2 order book history

Get paginated full-depth L2 checkpoint snapshots derived from L4 data for Hyperliquid from March 11, 2026 01:03 UTC onward. The route returns full checkpoint depth; it does not currently accept a per-request depth override.

get/v1/hyperliquid/orderbook/{symbol}/l2/history

Request

  • Base URL: https://api.0xarchive.io
  • URL: https://api.0xarchive.io/v1/hyperliquid/orderbook/{symbol}/l2/history
  • Auth: API key in header X-API-Key

Path parameters

symbolstring required
Example:BTC

Trading pair symbol (e.g., BTC, ETH, SOL)

Query parameters

integer

Unix milliseconds.

OR
string date-time

RFC 3339 instant.

Example:1767225600000

Start timestamp. Defaults to 24h ago. Accepts Unix milliseconds or an RFC 3339 UTC string such as 2026-01-01T00:00:00Z.

integer

Unix milliseconds.

OR
string date-time

RFC 3339 instant.

Example:1767225600000

End timestamp. Defaults to now. Accepts Unix milliseconds or an RFC 3339 UTC string such as 2026-01-01T00:00:00Z.

cursorstring

Opaque pagination cursor: pass meta.next_cursor from the previous page unchanged, with the same filters. Omit it for the first page.

limitinteger

Maximum number of checkpoint snapshots (default: 100, max: 100).

depthinteger
Example:200

Price levels per side in each snapshot, capped by the plan's order book depth. Omit it for the plan's depth. bid_levels and ask_levels still report the book's own level counts.

Response

Full-depth L2 checkpoint snapshots

successboolean

Example response

{
  "success": true,
  "data": [
    {
      "symbol": "BTC",
      "coin": "BTC",
      "timestamp": "2025-01-21T10:30:45.123Z",
      "bids": [
        {
          "px": "42150.00",
          "sz": "1.5",
          "n": 15
        }
      ],
      "asks": [
        {
          "px": "42150.00",
          "sz": "1.5",
          "n": 15
        }
      ],
      "mid_price": "42150.50",
      "spread": "1.00",
      "spread_bps": "2.37",
      "bid_levels": 9842,
      "ask_levels": 10318,
      "total_bid_size": 10234.56,
      "total_ask_size": 9876.54
    }
  ],
  "meta": {
    "symbol": "BTC",
    "venue": "hyperliquid"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.