# CoinAnk Order Book by Exchange

> CoinAnk Order Book by Exchange is a paid API for AI agents from claw402.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Retrieves cryptocurrency order book data aggregated by exchange for a specified trading pair and time range

## Facts

- Endpoint: GET https://claw402.ai/api/v1/coinank/orderbook/by-exchange
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coinank-order-book-by-exchange-7955a80a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_dJ2yoAxnantOyupRB7lvq

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 coinank-order-book-by-exchange-7955a80a
```

Example prompt: Show me the current order book for BTC across major spot exchanges — pull the top 20 levels and use Binance and Bybit as the exchanges.

## When to prefer this

Use this endpoint when you need order book depth data segmented by individual exchange for a specific cryptocurrency. Prefer this over generic market data endpoints when comparing liquidity or bid/ask spreads across multiple exchanges simultaneously using a pay-per-use USDC model with no API key registration.

## Known failure modes

- Invalid or unsupported baseCoin returns empty data array
- Unsupported exchange name results in empty or error response
- Malformed queryParam types return a 4xx error
- Payment not fulfilled returns HTTP 402
- Empty data array returned if no order book data exists for the given time range

## How this service works

Backed by vergex.trade. Pay for any API with USDC. No API keys. No registration. Just a wallet.

## Output

Returns a JSON object with a status code and an array of order book data entries segmented by exchange, including bid/ask levels for the specified base coin, product type, and time parameters.

## 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",
     "properties": {
      "size": {
       "type": "string"
      },
      "type": {
       "type": "string"
      },
      "endTime": {
       "type": "string"
      },
      "baseCoin": {
       "type": "string"
      },
      "interval": {
       "type": "string"
      },
      "exchanges": {
       "type": "string"
      },
      "productType": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "code": 0,
  "data": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coinank-order-book-by-exchange-7955a80a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from claw402.ai](https://www.zero.xyz/host/claw402.ai/llms.txt)
