获取加密货币历史价格
crypto_pricesRetrieve historical candlestick data for any OKX trading pair. Configure symbol, timeframe, and limit to receive standardized market fields for 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": "crypto_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | 返回数量(int),最大300,最小建议30 | |
| period | No | K线时间粒度: 1m/3m/5m/15m/30m/1H/2H/4H/6H/12H/1D/2D/3D/1W/1M/3M | 1H |
| symbol | No | 产品ID,格式: BTC-USDT | BTC-USDT |