OHLCV candles
get_candlesOHLCV candles of one market, ascending, UTC-aligned. hypercore: market = coin (BTC, HYPE, @107 spot, xyz:TSLA), down to 1 s. hyperevm / elysium: market = pool key from list_markets; prices in quote plus usd and mcap OHLC (USD price and market cap). hypercore with includeUsd: the same usd and, on a spot market, mcap, each candle converted with the quote token's USD price then (a USDH, USDT0 or USDE market; a USDC market's usd equals the candle) and the supply named in supply. Or token instead of market: a token's candles in USD through its reference pool (most liquid; the answer names it), HyperCore: its USDC market. Without from: the limit candles ending now. Windows over 30 days are billed as heavy calls.
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": {
"layer": "<layer>",
"tf": "<tf>"
},
"name": "get_candles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tf | Yes | Candle unit (EVM layers: 1s to 1d, no 3m 30m 2h 8h 12h 3d 1w 1M) | |
| to | No | End, Unix ms (exclusive; default now) | |
| from | No | Start, Unix ms (inclusive) | |
| layer | Yes | Layer | |
| limit | No | Candles (default 50, 30 for 1d; max 1000) | |
| token | No | Instead of market: a token (0x address; hypercore: name HYPE, PURR) | |
| market | No | hypercore: coin; hyperevm / elysium: pool key (or give token) | |
| network | No | Elysium network: mainnet or testnet, same answers (testnet USD values null). HyperCore and HyperEVM are always mainnet (default mainnet) | |
| includeUsd | No | hypercore: true adds each candle in USD (`usd`, `vUsd`) and, on a spot market, in market cap (`mcap`, with `supply`) |