Market candles
market_candlesRetrieve recent OKX public candlestick (OHLCV) data for one instrument to analyze price movement and volatility. Supports interval, pagination, and limit controls for read-only market research.
Instructions
Get recent OKX public candlesticks (OHLCV) for one instrument. READ-ONLY: this tool only calls OKX public market REST. No API key, no order, no account access. Returns newest-first, same as OKX. bar examples: 1m, 5m, 1H, 1D.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"instId": "<instId>"
},
"name": "market_candles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bar | No | Candle interval. Default 1H. | |
| after | No | Pagination: return records newer than this ms timestamp. | |
| limit | No | Number of candles, 1-300. Default 100. | |
| before | No | Pagination: return records older than this ms timestamp. | |
| instId | Yes | OKX instrument ID, e.g. BTC-USDT. |