# SperaxOS Binance Order Book API

> SperaxOS Binance Order Book API is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-13).

Fetches the current bid/ask order book for a Binance trading pair, returning price levels on both sides of the market.

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/binance-market/getOrderBook?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-binance-order-book-api-8605c38c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RajvT9bLDux3HbgudG7du

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 speraxos-binance-order-book-api-8605c38c -d '<json body>'
```

Example prompt: Can you pull the current Binance order book for BTC/USDT and show me the top 50 bid and ask price levels?

## When to prefer this

Use this endpoint when you need real-time Binance order book depth for spot trading pairs and want to pay per-request in USDC without managing API keys. Ideal for agents doing pre-trade analysis, liquidity checks, or spread monitoring on Binance markets. Prefer this over generic market data APIs when Binance-specific depth data is required and x402 micropayment billing is acceptable.

## Known failure modes

- Invalid or unrecognized symbol returns an error — ensure the trading pair exists on Binance
- Limit out of range (below 1 or above 100) may result in a validation error or default behavior
- Payment failure via x402 protocol results in a 402 response and no data returned
- Network or exchange downtime may cause timeouts or empty responses
- Symbol normalization (e.g. bare 'BTC') may fail if the assumed USDT pair is not active

## How this service works

AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.

## Output

Returns a structured order book with two sides: bids (buy orders) and asks (sell orders), each as a list of [price, quantity] pairs sorted by price priority, up to the requested number of levels (1–100).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "number",
   "default": 20,
   "description": "Number of price levels per side (1–100)."
  },
  "symbol": {
   "type": "string",
   "description": "Trading pair in any common form: \"BTCUSDT\", \"BTC/USDT\" or a bare \"BTC\" (a USDT quote is assumed)."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-binance-order-book-api-8605c38c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
