Token OHLCV candles
get_token_ohlcvOpen/high/low/close/volume candles for one Solana token, for technical analysis (RSI, moving averages, returns). Series is newest-first. Prices are USD. Candle size: interval (1m, 5m, 15m, 1h, 4h, 1d; wins over timeframe / aggregate; default 15m). An unsupported size is rejected; the response echoes interval and candle_seconds. t is Unix MILLISECONDS; time arguments take seconds or milliseconds.
🔴 NEWEST-FIRST, unlike TradingView: c[0] is the LATEST close and c[-1] the OLDEST, so a return is (c[0] - c[-1]) / c[-1] (the other way round flips the sign; order says so). Every candle is CLOSED: the forming one is dropped unless include_in_progress_candle is true (then it is index 0). Choosing between the two price tools: get_token_chart returns a ready-to-read price line for describing a trend; get_token_ohlcv returns raw open/high/low/close/volume candles for calculation and technical analysis. Prefer the chart unless you need per-candle numbers.
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": {
"token_address": "<token_address>"
},
"name": "get_token_ohlcv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many candles to return. | |
| time_to | No | Window end, Unix timestamp in SECONDS or MILLISECONDS — either is accepted. Requires `time_from` as well. | |
| interval | No | Candle size. Wins over `timeframe`/`aggregate`. Omit all three for 15m. | |
| aggregate | No | How many `timeframe` units per candle. 1 when only `timeframe` is given. | |
| time_from | No | Window start, Unix timestamp in SECONDS or MILLISECONDS — either is accepted. Requires `time_to` as well. | |
| timeframe | No | Candle unit. Candle size is `aggregate` × this (`aggregate` defaults to 1 when only this is given). Only the sizes listed under `interval` are served; anything else is rejected. | |
| token_address | Yes | Solana token mint address (base58). Get it from search_tokens or a leaderboard row. | |
| before_timestamp | No | Return candles before this Unix timestamp, in seconds or milliseconds. Use to page further back in history — a `t` value from a previous response can be passed straight back. | |
| include_in_progress_candle | No | True keeps the current, still-forming candle at index 0. Leave false for any calculation — its close is not a close. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||