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).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ticker_list": "<ticker_list>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "retrieve_stock_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_date | Yes | ||
| interval | No | 1d | |
| start_date | Yes | ||
| ticker_list | Yes |