# Crypto Order Book Depth API

> Crypto Order Book Depth API is a paid API for AI agents from api.webbersites.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-14).

Returns live bid/ask ladder with analytics (mid, spread, slippage estimates) for crypto pairs normalized across Coinbase, Binance.US, and Kraken

## Facts

- Endpoint: GET https://api.webbersites.com/api/orderbook
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-order-book-depth-api-2af7280c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6ZoRs07WSipZ5ooeIJ8Li

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 crypto-order-book-depth-api-2af7280c
```

Example prompt: Pull the live order book for BTC-USD with 50 levels per side using auto source selection, and tell me the current spread in basis points plus how much slippage I'd face on a $10k market buy.

## When to prefer this

Choose this endpoint when you need normalized, cross-exchange order book data for crypto pairs with built-in analytics like spread, slippage estimates, and liquidity depth — especially when you want auto-fallback across Coinbase, Binance.US, and Kraken without managing multiple exchange connections yourself. Ideal for trading bots, pre-trade analysis, and market microstructure queries.

## Known failure modes

- Invalid pair format (not BASE-QUOTE style) returns an error
- Depth out of range (outside 1-200) may return default or error
- All three exchange sources unavailable causes fetch failure
- Unknown source parameter value returns an error
- Network timeout from upstream exchange causes stale or empty response

## How this service works

L2 ORDER-BOOK DEPTH — the live bid/ask ladder for any crypto pair, normalized across Coinbase, Binance.US and Kraken (auto-fallback, or pick a source). Returns bids/asks to your depth plus the analytics that matter: mid, spread (absolute + bps), book liquidity per side, and slippage estimates for $1k/$10k/$100k market orders both directions. Deterministic, no keys, ~1.5s cache. ?pair=BTC-USD&depth=50&source=auto

## Output

Returns a structured object with full bids/asks arrays at the requested depth, best bid/ask objects, mid price, absolute spread and spread in basis points, per-side liquidity in quote currency, and slippage estimates for $1k/$10k/$100k market orders in both directions, sourced from whichever exchange was selected or auto-selected.

## 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": [
      "pair"
     ],
     "properties": {
      "pair": {
       "type": "string",
       "description": "BASE-QUOTE, e.g. BTC-USD, ETH-USD, SOL-USD"
      },
      "depth": {
       "type": "number",
       "description": "price levels per side, 1-200 (default 50)"
      },
      "source": {
       "type": "string",
       "description": "auto (default), coinbase, binance, kraken"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "mid": {
       "type": "number"
      },
      "asks": {
       "type": "array"
      },
      "bids": {
       "type": "array"
      },
      "pair": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "spread": {
       "type": "number"
      },
      "best_ask": {
       "type": "object"
      },
      "best_bid": {
       "type": "object"
      },
      "slippage": {
       "type": "object"
      },
      "spread_bps": {
       "type": "number"
      },
      "liquidity_quote": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "mid": 62655.35,
  "asks": [
   [
    62655.35,
    0.4
   ]
  ],
  "bids": [
   [
    62655.34,
    1.25
   ]
  ],
  "pair": "BTC-USD",
  "source": "coinbase",
  "spread": 0.01,
  "best_ask": {
   "size": 0.4,
   "price": 62655.35
  },
  "best_bid": {
   "size": 1.25,
   "price": 62655.34
  },
  "slippage": {
   "buy": [
    {
     "fillable": true,
     "notional": 100000,
     "avg_price": 62658.15,
     "filled_base": 1.596,
     "vs_best_bps": 0.45
    }
   ],
   "sell": [
    "…"
   ]
  },
  "spread_bps": 0.002,
  "liquidity_quote": {
   "asks": 764210.9,
   "bids": 812443.1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-order-book-depth-api-2af7280c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.webbersites.com](https://www.zero.xyz/host/api.webbersites.com/llms.txt)
