Crypto order book (OKX)
crypto_orderbookRetrieve current bids and asks for a cryptocurrency order book. Configure depth to view up to 400 levels per side for any instrument.
Instructions
Current bids/asks for an instrument.
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": {
"instId": "<instId>"
},
"name": "crypto_orderbook"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | Levels per side | |
| instId | Yes | e.g. BTC-USDT-SWAP |