get_orderbook
Get a Level-2 order-book snapshot from any exchange to assess liquidity, spread, and supply/demand for a trading pair.
Instructions
Get a Level-2 order-book snapshot (top bids and asks) from a specific exchange.
Use to assess liquidity, spread, and short-term supply/demand on a venue. Note this is a snapshot, not a stream.
Args: exchange_id: CCXT exchange ID. symbol: CCXT unified symbol, e.g. "BTC/USDT". limit: How many price levels per side (default 20). Some exchanges cap this; CCXT will return as many as the venue allows.
Returns:
Object with symbol, timestamp, datetime, bids (array of
[price, amount] pairs sorted high to low), asks (low to high), nonce.
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": {
"exchange_id": "<exchange_id>",
"symbol": "<symbol>"
},
"name": "get_orderbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exchange_id | Yes | ||
| symbol | Yes | ||
| limit | No |