获取加密货币历史价格
okx_pricesRetrieve historical OKX cryptocurrency K-line data, including price, volume, and technical indicators. Specify trading pair, time interval, and result limit for targeted analysis.
Instructions
获取OKX加密货币的历史K线数据,包括价格、交易量和技术指标
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": "okx_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bar | No | K线时间粒度,仅支持: [1m/3m/5m/15m/30m/1H/2H/4H/6H/12H/1D/2D/3D/1W/1M/3M] 除分钟为小写m外,其余均为大写 | 1H |
| limit | No | 返回数量(int),最大300,最小建议30 | |
| instId | No | 产品ID,格式: BTC-USDT | BTC-USDT |