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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exchange_id | Yes | ||
| symbol | Yes | ||
| limit | No |