get_historical_data
Retrieve historical stock price data for a given ticker and period, with selectable intervals, returning summary statistics and returns for market analysis.
Instructions
Get historical price data for a stock.
Args: ticker: Stock ticker symbol period: Time period - valid values: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max interval: Data interval - valid values: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo
Returns: Historical price data summary with statistics and returns
Example: >>> await get_historical_data("AAPL", period="6mo", interval="1d")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | 1y | |
| ticker | Yes | ||
| interval | No | 1d |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |