get_orderbook
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 ($0.05 per call, paid via x402)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pair": "<pair>"
},
"name": "get_orderbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | BASE-QUOTE, e.g. BTC-USD, ETH-USD, SOL-USD | |
| depth | No | price levels per side, 1-200 (default 50) | |
| source | No | auto (default), coinbase, binance, kraken |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mid | No | ||
| asks | No | ||
| bids | No | ||
| pair | No | ||
| source | No | ||
| spread | No | ||
| best_ask | No | ||
| best_bid | No | ||
| slippage | No | ||
| spread_bps | No | ||
| liquidity_quote | No |