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
Name | Required | Description | Default |
---|---|---|---|
end_date | Yes | ||
interval | No | 1d | |
start_date | Yes | ||
ticker_list | Yes |
Input Schema (JSON Schema)
{
"properties": {
"end_date": {
"title": "End Date",
"type": "string"
},
"interval": {
"default": "1d",
"title": "Interval",
"type": "string"
},
"start_date": {
"title": "Start Date",
"type": "string"
},
"ticker_list": {
"items": {},
"title": "Ticker List",
"type": "array"
}
},
"required": [
"ticker_list",
"start_date",
"end_date"
],
"title": "retrieve_stock_dataArguments",
"type": "object"
}