# Hyperliquid Perpetuals Order Book Depth

> Hyperliquid Perpetuals Order Book Depth is a paid API for AI agents from api.chainmarket-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Returns real-time order book depth, funding rate, open interest, and 24h volume data for a Hyperliquid perpetuals market

## Facts

- Endpoint: GET https://api.chainmarket-api.workers.dev/api/crypto/hyperliquid-perps-depth?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hyperliquid-perpetuals-order-book-depth-f0833698
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ec485JESrbIJ-H3TLOayM

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-order-book-depth-f0833698
```

Example prompt: What's the current order book depth, funding rate, and open interest for BTC perpetuals on Hyperliquid right now?

## When to prefer this

Use this endpoint when you need real-time Hyperliquid perpetuals market microstructure data including order book depth, funding rates, open interest, and volume — all in a single call. Prefer this over generic price feeds when you specifically need Hyperliquid perps data (not spot), funding rate information, or liquidity depth metrics. Requires no signup or API key and charges only $0.002 USDC per successful call via x402.

## Known failure modes

- Invalid or unsupported coin symbol returns an error or empty result
- Hyperliquid API upstream downtime causes failed or stale responses
- Network timeout from the Cloudflare worker to Hyperliquid's API
- Missing required 'coin' query parameter may return an error or default behavior

## How this service works

Hyperliquid L1 perpetual market snapshot for one coin: best bid and ask, spread, USD depth within 1% of mid (from the 20 returned levels per side), mark and oracle prices, hourly funding rate, open interest in USD and 24h notional volume. Public market data only; vault PnL is not included.

## Output

Returns a JSON object with: coin symbol, best bid/ask prices, mid price, mark price, oracle price, spread percentage, max leverage, 24h price change %, funding rate per hour %, number of levels per side, depth within 1% (bid and ask in USD), open interest in USD and coins, 24h notional volume in USD, and timestamp of when data was checked.

## 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": [],
     "properties": {
      "coin": {
       "type": "string",
       "description": "Hyperliquid perp name, e.g. BTC, ETH, SOL"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coin": "BTC",
  "source": "https://api.hyperliquid.xyz/info",
  "bestAsk": 81628,
  "bestBid": 81627,
  "midPrice": 81627.5,
  "checkedAt": "2026-10-23T09:36:07.796Z",
  "markPrice": 81624,
  "spreadPct": 0.001225,
  "maxLeverage": 40,
  "oraclePrice": 81622,
  "change24hPct": -0.1773,
  "levelsPerSide": 20,
  "depthWithin1pct": {
   "askUsd": 6807528,
   "bidUsd": 4810906
  },
  "openInterestUsd": 3569083745,
  "openInterestCoins": 43725.91082,
  "dayNotionalVolumeUsd": 2584667997.04728,
  "fundingRatePerHourPct": 0.00125
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hyperliquid-perpetuals-order-book-depth-f0833698/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.chainmarket-api.workers.dev](https://www.zero.xyz/host/api.chainmarket-api.workers.dev/llms.txt)
