okx_get_sprd_history_candles
Retrieve historical candlestick data for a spread contract on OKX. Specify the spread ID, bar period, and time range to get OHLCV history.
Instructions
[L:READ] CAT:[行情] | → 请先调用 agent_catalog
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bar | No | K线周期,默认1H | |
| after | No | 查询此时间戳之前的数据(毫秒) | |
| limit | No | 返回条数,默认100 | |
| before | No | 查询此时间戳之后的数据(毫秒) | |
| sprdId | Yes | 价差合约ID。必填 |