okx_get_history_candles
Retrieve historical candlestick data for any product ID, with customizable interval and time range. Supports pagination with before/after timestamps.
Instructions
[L:READ] CAT:[行情] | → 请先调用 agent_catalog
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bar | No | K线周期,默认1H | |
| after | No | 查询此时间戳之前的数据(毫秒Unix时间戳,用于翻页) | |
| limit | No | 返回条数,默认100 | |
| before | No | 查询此时间戳之后的数据(毫秒Unix时间戳) | |
| instId | Yes | 产品ID,如 BTC-USDT |