# x402.shizu.me Order Book

> x402.shizu.me Order Book is a paid API for AI agents from x402.shizu.me, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Returns real-time Coinbase order book data for a crypto pair, including best bid/ask, mid price, spread, and optional depth levels

## Facts

- Endpoint: GET https://x402.shizu.me/orderbook
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-shizu-me-order-book-33f456a5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jgGYn98105wp81O3as9W-

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 x402-shizu-me-order-book-33f456a5
```

Example prompt: Pull the full order book for BTC-USD with depth level 2 and show me the top 10 price levels on each side — I want to see the spread in basis points and check liquidity before placing a trade.

## When to prefer this

Use this endpoint when you need real-time order book data for crypto trading decisions, spread monitoring, or liquidity analysis sourced directly from Coinbase. Prefer this over spot price endpoints when you need depth of market, bid/ask spread, or execution quality signals. Choose level=2 when you need to assess market depth beyond the best bid/ask.

## Known failure modes

- Invalid or unsupported trading pair returns an error (e.g. unsupported pair code)
- depth parameter out of range (must be 1-50) returns a validation error
- level parameter must be 1 or 2; other values return an error
- Coinbase connectivity issues may cause temporary data unavailability
- Payment failure (insufficient USDC balance) blocks the request

## How this service works

Live order book for a crypto pair (e.g. BTC-USD). Default level=1: best bid/ask with sizes, mid price, spread, and spread_bps. level=2 adds top-of-book depth (depth param, 1-50 price levels per side, default 20). Real-time from Coinbase. Use for trading signals, spread monitoring, liquidity checks, and execution decisions.

## Output

Returns the current order book for the requested crypto pair. At level 1: best bid price and size, best ask price and size, mid price, spread, and spread in basis points. At level 2: all of the above plus up to 50 price levels per side (bid and ask), showing price and size at each level. Data is sourced in real-time from Coinbase.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "pair": {
       "type": "string"
      }
     },
     "required": [
      "pair"
     ]
    }
   },
   "required": [
    "method"
   ]
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ask": [
   62541.8,
   0.3
  ],
  "bid": [
   62540.2,
   0.5
  ],
  "mid": 62541,
  "pair": "BTC-USD",
  "level": 1,
  "spread": 1.6,
  "spread_bps": 0.256
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-shizu-me-order-book-33f456a5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.shizu.me](https://www.zero.xyz/host/x402.shizu.me/llms.txt)
