# Coinbase Spot Order Book

> Coinbase Spot Order Book is a paid API for AI agents from dt0ur.online, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-01).

Returns live order book data for a Coinbase spot trading pair, including best bid/ask, mid price, spread in basis points, USD liquidity within 1% of mid, and top bid/ask levels.

## Facts

- Endpoint: POST https://dt0ur.online/api/market/orderbook?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coinbase-spot-order-book-a4000f3a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jiUAh7d-0kBGfVFDemjyG

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 coinbase-spot-order-book-a4000f3a -d '<json body>'
```

Example prompt: Pull the live order book for BTC-USD on Coinbase with 30 levels of depth — I need the best bid and ask, the spread in basis points, and how much USD liquidity is sitting within 1% of mid on each side.

## When to prefer this

Use this endpoint when you need real-time Coinbase-specific order book data for execution quality checks, slippage estimation, or market microstructure analysis. Prefer this over generic price feeds when you need depth-of-book liquidity data (not just last traded price), spread in basis points, or USD liquidity within a price band — especially for pre-trade analysis on Coinbase spot pairs.

## Known failure modes

- Invalid product ID returns an error — must use a valid Coinbase product format like BTC-USD, ETH-USD, SOL-USD, ETH-BTC
- Depth out of range (less than 1 or greater than 50) will be rejected
- Network or exchange connectivity issues may return stale or unavailable data
- Payment failure for the $0.01 USDC per call fee results in 402 error

## How this service works

Live order book for a Coinbase spot pair: best bid/ask, mid price, spread in bps, USD liquidity within 1% of mid on each side, and the top bid/ask levels (up to 50). Useful for slippage and execution checks.

## Output

Returns a structured snapshot of the live Coinbase order book for the requested pair, including: best bid price and size, best ask price and size, mid price, spread in basis points, total USD liquidity within 1% of mid on both the bid and ask sides, and the top N bid/ask price levels (up to 50) with sizes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "depth": {
   "type": "integer",
   "default": 20,
   "maximum": 50,
   "minimum": 1
  },
  "product": {
   "type": "string",
   "description": "Coinbase product id, e.g. BTC-USD, ETH-USD, SOL-USD, ETH-BTC"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coinbase-spot-order-book-a4000f3a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dt0ur.online](https://www.zero.xyz/host/dt0ur.online/llms.txt)
