获取加密货币历史价格
okx_pricesFetch historical OHLCV candlestick data for OKX cryptocurrency pairs, with configurable time frames and automatic retry on failure.
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 |
|---|---|---|---|
| instId | No | 产品ID,格式: BTC-USDT | BTC-USDT |
| 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 |