get_orderbook
Current resting bids and asks, best bid/ask, and spread for one exact CoinAPI spot instrument, such as COINBASE_SPOT_BTC_USD. Returns exchange and provider timestamps. Snapshot depth defaults to 20 levels per side and is capped at 200. A snapshot does not establish bid buildup over time; use get_orderbook_history. CoinAPI only (provider=coinapi). Does not start a stream or a collector.
[Access: pay 0.005 USDC via x402 (PAYMENT-SIGNATURE header) OR authenticate with an API key. An x402-capable client will auto-pay; API-key clients pay nothing per call.]
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": {
"symbol_id": "<symbol_id>"
},
"name": "get_orderbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| provider | No | Optional upstream override; omitted uses the existing server default. | coinapi |
| symbol_id | Yes | Exact provider spot instrument identifier, including venue, SPOT, base, and quote. | |
| limit_levels | No | Maximum price levels on each side of the order book. |