retrieve_stock_data
Retrieve historical stock data for specified tickers, date range, and interval using yfinance. Outputs a dictionary mapping tickers to their historical data for analysis and research.
Instructions
Retrieves stock data for a list of tickers using yfinance.
Args:
ticker_list: List of ticker symbols (e.g., ['AAPL', 'MSFT', 'GOOGL'])
start_date: Start date of the data (e.g., '2024-01-01')
end_date: End date of the data (e.g., '2024-12-31')
interval: Data interval (e.g., '1d', '1h', '5m', etc.)
Returns:
Dict mapping ticker to its historical data (as a list of dicts).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | ||
| interval | No | 1d | |
| start_date | Yes | ||
| ticker_list | Yes |