get_historical_data
Fetch historical OHLCV price data for stocks or cryptocurrencies with intervals from 1 minute to 1 month. Use for charting and technical analysis.
Instructions
Retrieve historical OHLCV (Open, High, Low, Close, Volume) price data for a stock or cryptocurrency. Supports various time intervals from 1 minute to 1 month. Useful for charting and technical analysis.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | Ticker symbol (e.g., AAPL, BTC-USD, MSFT) | |
| period1 | Yes | Start date/period. Can be ISO date (YYYY-MM-DD), relative period (1d, 7d, 1mo, 3mo, 1y), or timestamp. | |
| period2 | No | End date/period (optional, defaults to now). Can be ISO date (YYYY-MM-DD), relative period, or timestamp. | |
| interval | Yes | Data interval: 1m=1 minute, 5m=5 minutes, 15m=15 minutes, 30m=30 minutes, 1h=1 hour, 1d=1 day, 1wk=1 week, 1mo=1 month |