get_history
Get historical open, high, low, close, and volume data for a stock symbol. Specify period or date range and interval to analyze price trends.
Instructions
Get historical OHLCV (open/high/low/close/volume) data for a symbol.
symbol must be a native Yahoo Finance ticker (e.g. AAPL, SAP.DE),
never an ISIN, WKN, or company name; resolve those via search first.
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 native Yahoo Finance ticker symbol, e.g. 'AAPL', 'MSFT', 'SAP.DE', or 'BMW.DE'. This is NOT an ISIN, a WKN, or a company name, and must NOT be built by appending an exchange suffix to an ISIN (e.g. 'US0378331005.DE' is invalid). If you only have a name or ISIN, call the 'search' tool first and pass the 'symbol' value it returns. | |
| 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 | |||