工具 API
yfinance_ get_ price_ history
Fetch historical price data and optionally generate technical analysis charts. When chart_type is None, returns Markdown table with columns: - Date: Trading date (index) - Open: Opening price - High: Highest price - Low: Lowest price - Close: Closing price - Volume: Trading volume - Dividends: Dividend payments (if any) - Stock Splits: Split events (if any) When chart_type is specified, returns a chart image: - 'price_volume': Candlestick chart with volume bars - 'vwap': Price with Volume Weighted Average Price overlay - 'volume_profile': Volume distribution by price level Set prepost=True to include pre-market and post-market data when available. Note: Not all period/interval combinations are valid. Minute intervals (1m, 5m, etc.) only work with short periods (1d, 5d).
调用信息
- 工具标识
- smg-yfinance.yfinance_get_price_history
- 服务提供方
- Yahoo Finance
- 平均响应
- 912 ms
- 近 7 天调用
- 17
输入参数
symbol必填Stock ticker symbol (e.g., 'AAPL', 'GOOGL', 'MSFT')
periodTime range: '1d'/'5d' (days), '1mo'/'3mo'/'6mo' (months), '1y'/'2y'/'5y'/'10y' (years), 'ytd' (year-to-date), 'max' (all available data)
intervalData granularity: '1m'/'5m'/'15m'/'30m' (minutes), '1h' (hour), '1d'/'5d' (days), '1wk' (week), '1mo'/'3mo' (months). Short intervals require short periods (e.g., '1m' interval only works with '1d'/'5d' period)
chart_typeOptional visualization: 'price_volume' (candlestick chart with volume bars), 'vwap' (Volume Weighted Average Price overlay), 'volume_profile' (volume distribution by price level). Omit for tabular data
prepostInclude pre-market and post-market data when available