Price history (OHLCV)
get_price_historyGet daily OHLCV price history for a ticker: open/high/low/close/volume. Use period_days to control how far back (default 365, max 3650).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | how many recent sessions to return when no window is given (default 20, max 120) | |
| ticker | Yes | Ticker symbol, e.g. 'SPY', 'GDX', 'AAPL' | |
| to_date | No | end of the window to quote, YYYY-MM-DD | |
| from_date | No | start of the window to quote, YYYY-MM-DD | |
| period_days | No | Number of days of history (default 365, max 3650) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ticker | No | ||
| current | No | ||
| date_range | No | ||
| total_bars | No | ||
| instrument_id | No | ||
| recent_prices | No | ||
| period_return_pct | No |