# Hyperliquid Perpetuals L2 Order Book

> Hyperliquid Perpetuals L2 Order Book is a paid API for AI agents from hyperliquid-data.api.klymax402.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Returns the current L2 order book (bids and asks) for a specified Hyperliquid perpetuals trading pair

## Facts

- Endpoint: GET https://hyperliquid-data.api.klymax402.com/api/orderbook
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hyperliquid-perpetuals-l2-order-book-ca74c7b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eKzp6-ta7R_MAgTcdTsj0

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability hyperliquid-perpetuals-l2-order-book-ca74c7b1
```

Example prompt: Show me the current L2 order book for BTC perpetuals on Hyperliquid — I want to see the bids and asks right now.

## When to prefer this

Use this endpoint when you need real-time L2 order book depth data specifically from the Hyperliquid perpetuals DEX. Prefer this over generic market data APIs when the user is specifically trading or analyzing positions on Hyperliquid perps, or when you need decentralized on-chain order book data rather than CEX data.

## Known failure modes

- Invalid or unsupported coin symbol returns an error or empty response
- Network timeout if Hyperliquid's underlying data feed is unavailable
- Missing required 'coin' query parameter returns a validation error
- Rate limiting or payment failure (x402) if USDC payment is not properly handled

## How this service works

L2 order book for a Hyperliquid perp pair

## Output

A snapshot of the L2 order book for the requested Hyperliquid perpetual pair, including ordered bid and ask price levels with their corresponding quantities/sizes at each level.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "coin"
     ],
     "properties": {
      "coin": {
       "type": "string",
       "description": "Coin symbol (e.g. BTC, ETH, SOL, ARB, DOGE)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hyperliquid-perpetuals-l2-order-book-ca74c7b1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hyperliquid-data.api.klymax402.com](https://www.zero.xyz/host/hyperliquid-data.api.klymax402.com/llms.txt)
