get_candles
Retrieve OHLCV price candles for a stock to compute indicators or check price changes over custom ranges.
Instructions
Return OHLCV price candles for a single stock. Use when you need price history to compute indicators or answer 'how much is X up this month'. time is a Unix epoch in seconds (UTC midnight for daily). Default range is 6mo. Use larger ranges like '1y' or '2y' only when the user explicitly asks for long history — max range is 20 years. Returns { symbol, interval, range, count, data: [{time, open, high, low, close, volume}] }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Stock ticker | |
| interval | No | Daily or weekly candles | 1d |
| range | No | Range: 1d, 5d, 1y, 2y, 5y, max, or {N}mo (1-240) | 6mo |