get_history
Retrieve historical OHLCV data for any Yahoo Finance symbol, with configurable period, interval, and date range.
Instructions
Get historical OHLCV (open/high/low/close/volume) data for a symbol.
period accepts Yahoo values such as 1d, 5d, 1mo, 6mo,
1y, 5y, max. interval accepts e.g. 1m, 5m, 1h,
1d, 1wk, 1mo. Provide start (and optional end) as
YYYY-MM-DD to query an explicit date range instead of period.
Results are capped at the most recent 250 rows.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End date 'YYYY-MM-DD'. Used only together with 'start'. | |
| start | No | Start date 'YYYY-MM-DD'. Overrides 'period' when set. | |
| period | No | Look-back window. One of: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max. Ignored when 'start' is given. | 1mo |
| symbol | Yes | A Yahoo ticker or an ISIN, e.g. 'AAPL', 'SAP.DE' or 'US0378331005'. For a company name, use 'search' first. | |
| interval | No | Bar size. One of: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo. Intraday intervals only cover recent dates. | 1d |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||