get_aggregated_ohlc
Aggregate OHLC candlestick data across all exchanges to analyze market-wide price trends. Candle width adjusts automatically based on the selected time window, from 30-minute to daily candles.
Instructions
Get aggregated OHLC (open/high/low/close) candlestick data across all exchanges.
Use for technical-analysis-style candlestick views of "the market" rather
than a single venue. For per-exchange high-granularity candles (1m, 5m, etc.),
use get_exchange_ohlcv (CCXT) instead.
Candle width auto-selected by CoinGecko based on days:
days = 1 -> 30-minute candles
days in {7, 14, 30} -> 4-hour candles
days in {90, 180, 365, max} -> daily candles
Args: coin_id: CoinGecko coin ID. vs_currency: Quote currency (e.g. "usd"). days: Window in days. One of "1","7","14","30","90","180","365","max".
Returns: Array of [unix_ms, open, high, low, close] tuples.
Note: coin_id is validated against ^[a-z0-9][a-z0-9._-]{0,127}$.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin_id | Yes | ||
| vs_currency | No | usd | |
| days | No | 30 |