get_history
Fetch historical OHLCV data for a symbol using a look-back period or start/end dates, returning up to 250 rows with truncation flag.
Instructions
Get historical OHLCV (open/high/low/close/volume) data for a symbol.
Query a look-back period or an explicit start/end range. Results
are capped at the most recent 250 rows, with truncated set when cut.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End date 'YYYY-MM-DD', exclusive: for one day pass the day after. Used only together with 'start'. | |
| start | No | Start date 'YYYY-MM-DD'. Overrides 'period' when set. | |
| period | No | Look-back window: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max, or any count of d, wk, mo or y such as 7mo. 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, 4h, 1d, 5d, 1wk, 1mo, 3mo. Intraday intervals only cover recent dates. | 1d |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||