get_candles
Retrieve OHLCV candles for one market at 1s, 1m, 5m, or 1h intervals. Deprecated: use fetch_ohlcv for current candle requests.
Instructions
Deprecated: use fetch_ohlcv. Get OHLCV candles for one market. Public — no credentials needed. Timeframe is one of 1s, 1m, 5m, 1h (default 1m).
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": {
"market_id": "<market_id>"
},
"name": "get_candles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of candles to return (max 1000). | |
| market_id | Yes | Market id, e.g. "BTC-USDX-PERP". | |
| timeframe | No | Candle interval. Defaults to 1m. |