# 47620 Crypto Order Book Top-of-Book API (SOL)

> 47620 Crypto Order Book Top-of-Book API (SOL) is a paid API for AI agents from 47620.xyz, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Returns best bid/ask prices, mid price, spread, bid/ask depth, and book imbalance for a given crypto symbol (e.g. SOL) to assess liquidity and slippage before trading.

## Facts

- Endpoint: GET https://47620.xyz/x/crypto/orderbook/SOL?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/47620-crypto-order-book-top-of-book-api-sol-54a1fdcf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-71B08ZbVKTZ2i2sdNrh-

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 47620-crypto-order-book-top-of-book-api-sol-54a1fdcf
```

Example prompt: Before I trade SOL, pull the top-of-book order book data — best bid, best ask, mid price, spread in bps, and book imbalance — using a limit of 50 levels so I can gauge liquidity and expected slippage.

## When to prefer this

Choose this endpoint when an AI agent needs real-time top-of-book liquidity data for SOL (or other supported crypto symbols) immediately before executing or recommending a trade. It is purpose-built for pre-trade analysis: slippage estimation, spread monitoring, and order flow imbalance detection. Prefer it over generic price feeds when bid/ask depth and book imbalance are needed, not just a last-traded price.

## Known failure modes

- Invalid or unsupported symbol returns an error or empty book
- Limit parameter out of range (below 5 or above 100) may cause a validation error
- Exchange or data feed outage may result in stale or unavailable order book data
- Payment failure (x402) prevents response if USDC payment is not processed
- Network timeout if the upstream order book source is unresponsive

## How this service works

Top-of-book for a coin: best bid/ask, mid price, absolute + bps spread, bid/ask depth and book imbalance (>0 = more bids). Query: limit (5-100, default 20). Liquidity and slippage read for an agent about to trade.

## Output

A JSON object containing: best bid price, best ask price, mid price, absolute spread, spread in basis points, bid-side depth, ask-side depth, and book imbalance score (positive = more bids than asks). Also includes an 'ok' status flag and the endpoint identifier.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "description": "Top-of-book for a coin: best bid/ask, mid price, absolute + bps spread, bid/ask depth and book imbalance (>0 = more bids). Query: limit (5-100, default 20). Liquidity and slippage read for an agent about to trade."
      }
     },
     "additionalProperties": false
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "fields": {
       "type": "string",
       "description": "Optional comma-separated top-level response keys to keep (e.g. \"health,slot,solUsd\"). Omit for the full payload."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "endpoint"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "endpoint": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/47620-crypto-order-book-top-of-book-api-sol-54a1fdcf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 47620.xyz](https://www.zero.xyz/host/47620.xyz/llms.txt)
