get_stock_history
Get historical OHLCV candle data for stocks and ETFs. Define the ticker, lookback period, and interval to receive past price and volume records in chronological order.
Instructions
Get historical OHLCV candles for a stock or ETF.
Args:
symbol: Ticker symbol, e.g. AAPL.
period: Lookback window. One of: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, max.
interval: Candle size. One of: 1m, 5m, 15m, 1h, 1d, 1wk, 1mo.
Returns a list of candles ordered oldest-to-newest.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| period | No | 1mo | |
| interval | No | 1d |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||