Get OKX orderbook depth
get_okx_orderbookRetrieve live OKX orderbook bid and ask levels with spread in bps and volume imbalance to gauge market depth and pressure for spot or swap instruments.
Instructions
Retrieve top bid and ask levels from the live OKX orderbook along with spread in bps and bid/ask volume imbalance.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_okx_orderbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Number of price levels per side (default 10, max 50). | |
| inst_id | No | OKX instrument ID such as "BTC-USDT" (default) or "BTC-USDT-SWAP". |