Hyperliquid Spot

Get Hyperliquid Spot order book

Get the latest Hyperliquid Spot order book snapshot for a pair, or a historical snapshot when timestamp is supplied.

get/v1/hyperliquid/spot/orderbook/{symbol}

Request

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

Path parameters

symbolstring required
Example:HYPE-USDC

Hyperliquid Spot pair symbol, for example HYPE-USDC

Query parameters

integer
OR
string date-time
Example:1704067200000

Timestamp for historical lookup. Supports the timestamp format used by the route family.

depthinteger
Example:20

Number of price levels per side.

Response

Order book snapshot

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"
  }
}

Changes

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