get_stock_history
Fetch historical OHLCV stock data by symbol and date range for price trend and technical analysis, with optional aggregation and return/volatility stats. Output text or JSON.
Instructions
Returns historical OHLCV data with auto-aggregation and stats. Use for price trends and technical analysis. Text default; set format=json for structured data.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | End date in YYYY-MM-DD format | |
| start | No | Start date in YYYY-MM-DD format | |
| format | No | Output format (default: text) | |
| period | No | Time period (default: 1y) | |
| symbols | Yes | Stock symbol(s), space-separated | |
| interval | No | Data interval (default: 1d) | |
| max_rows | No | Max data rows to return (default: 52) | |
| aggregate | No | Aggregation level (default: auto based on period) | |
| include_stats | No | Include return%, volatility, max drawdown stats header (default: true) |