# Hyperliquid Spot Order Book (x402stock)

> Hyperliquid Spot Order Book (x402stock) is a paid API for AI agents from agents.x402stock.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the level-2 order book for a Hyperliquid spot market, including aggregated bid and ask price levels with size and resting order count.

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/spot/orderbook/:token
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hyperliquid-spot-order-book-x402stock-9a012a4f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EY0U5jAJTVXYwE2BxlpL0

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-spot-order-book-x402stock-9a012a4f
```

Example prompt: Pull the current level-2 spot order book for HYPE on Hyperliquid so I can see the bid and ask depth, spread, and resting order counts at each price level.

## When to prefer this

Use this endpoint when you need real-time level-2 spot order book data for a Hyperliquid token — specifically bid/ask depth, spread, and resting order counts. Prefer this over the perp order book endpoint (/api/v1/perps/orderbook/{coin}) when trading or analyzing the spot market. Choose this when you need to assess spot liquidity before executing trades, monitor market microstructure, or build spread-based signals for Hyperliquid spot pairs.

## Known failure modes

- Unknown or unsupported token symbol returns an error — only Hyperliquid-listed spot tokens are valid
- Passing a perp coin symbol instead of a spot token may return empty or mismatched data
- Network or Hyperliquid data feed outage may result in stale or unavailable order book
- Missing or malformed token parameter returns a 400-level error
- Rate limiting or payment failure returns a 402 or 429 error

## How this service works

Level-2 order book for one Hyperliquid spot market: aggregated bid and ask price levels, each with size and resting order count, as of the book timestamp. Pass a token symbol (e.g. HYPE, PURR) or @index. Use to gauge spot liquidity, spread, and depth. Spot book — for the perp book use /api/v1/perps/orderbook/{coin}. From x402stock, a market & economic data API (x402, USDC).

## Output

Returns aggregated level-2 order book data for the requested Hyperliquid spot market token, including a list of bid price levels and a list of ask price levels, each with the aggregated size and number of resting orders at that level, along with the book timestamp.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "token": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hyperliquid-spot-order-book-x402stock-9a012a4f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.x402stock.xyz](https://www.zero.xyz/host/agents.x402stock.xyz/llms.txt)
