Read a Bybit spot order book
get_order_bookFetches the live Bybit spot order book for a pair, including best bid/ask, spread, depth ladders, resting size, and bid/ask imbalance so you can check liquidity before quoting a trade.
Instructions
Return the live Bybit spot order book for one pair: best bid and ask, the spread in basis points, both ladders and the total resting size per side plus a bid/ask imbalance ratio. Prices are in the quote currency and sizes in the base currency. Use it to see liquidity before quoting a trade. Example: symbol='BTCUSDT', depth=20.
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": "<symbol>"
},
"name": "get_order_book"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many levels per side to fetch and return, from 1 to 1000. Bybit only serves 1, 5, 25, 50, 100, 200, 500 and 1000 levels, so the value is rounded up to the nearest of those. | |
| symbol | Yes | Spot pair in Bybit notation, base coin first, such as 'BTCUSDT', 'ETHUSDT' or 'PEPEUSDC'. Case does not matter here. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||