okx_prices
Retrieve cryptocurrency candlestick data from OKX exchange for technical analysis and market monitoring. Access price history across multiple timeframes to inform trading decisions.
Instructions
获取OKX加密货币K线数据
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 |
| instId | No | 产品ID,格式: BTC-USDT | BTC-USDT |
| limit | No | 返回数量(int),最大300,最小建议30 |
Input Schema (JSON Schema)
{
"properties": {
"bar": {
"default": "1h",
"description": "K线时间粒度,仅支持: [1m/3m/5m/15m/30m/1H/2H/4H/6H/12H/1D/2D/3D/1W/1M/3M] 注意大小写,仅分钟为小写m",
"type": "string"
},
"instId": {
"default": "BTC-USDT",
"description": "产品ID,格式: BTC-USDT",
"type": "string"
},
"limit": {
"default": 100,
"description": "返回数量(int),最大300,最小建议30",
"type": "integer"
}
},
"type": "object"
}