binance_get_order_book
Fetch the current order book for a Binance symbol to inspect live bid/ask depth and spread before placing or sizing an order.
Instructions
Fetch the current order book (bids/asks) for a symbol.
Calls GET /api/v3/depth. Weight tiers by limit: 1-100 → 5, 101-500 → 25 (this
tool's cap is 500; Binance itself allows up to 5000 at weight 250, unavailable here).
When to Use:
To see live liquidity/spread before sizing an order.
To validate a limit price against the current best bid/ask.
When NOT to Use:
For the last traded price only — use
binance_get_book_ticker(cheaper, weight 2/4).For historical trades — use
binance_get_recent_trades/binance_get_agg_trades.
Returns:
Markdown: top 50 levels per side as price/qty tables, with the book's lastUpdateId.
JSON: the full requested depth (up to limit), uncapped.
Examples: params = {"symbol": "BTCUSDT", "limit": 20}
Error Handling:
An unknown symbol raises Binance -1121 Invalid symbol.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |