get_price_history
Retrieves historical OHLCV stock price data with smart interval selection based on time period. Supports daily to intraday data for backtesting and technical analysis.
Instructions
Get historical OHLCV (Open, High, Low, Close, Volume) stock price data with smart interval selection based on time period. Returns daily data for longer periods and intraday data for shorter periods. Use this when asked about price history, past performance, stock charts, historical trends, price patterns over time, year-to-date performance, or comparing current prices to historical levels. Supports periods: 1 day, 5 days, 1 month, 3 months, 6 months, 1 year, 2 years, 5 years, 10 years, year-to-date, and maximum available history. Perfect for backtesting, technical analysis, and historical comparisons. Works with any ticker: AAPL, TSLA, SPY, QQQ, etc.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes |