Candles
candlesOKX crypto exchange OHLC candles for a spot/perp/futures instrument. Bars 1m through 1M. Use for charting and backtesting OKX instruments.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"bar": "1H",
"instId": "BTC-USDT"
},
"name": "candles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bar | No | ||
| after | No | ||
| limit | No | ||
| before | No | ||
| instId | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||