okx_get_history_index_candles
Fetch historical index candles (OHLCV) for an OKX index product ID, with configurable bar size, time range, and result limit.
Instructions
[L:READ] CAT:[行情] | → 请先调用 agent_catalog
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": "okx_get_history_index_candles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bar | No | K线周期,默认1H | |
| after | No | 查询此时间戳之前的数据(毫秒) | |
| limit | No | 返回条数,默认100 | |
| before | No | 查询此时间戳之后的数据(毫秒) | |
| instId | Yes | 指数产品ID,如 BTC-USDT。必填 |