fetch_market_data
Retrieve real-time financial data including current prices, trends, moving averages, and historical performance for stocks, ETFs, cryptocurrencies, and commodities from Yahoo Finance.
Instructions
Fetch real financial/stock/ETF data from Yahoo Finance.
Returns current price, trend, moving averages, 52-week range, and % change.
Args: symbols: Comma-separated ticker symbols (e.g. "AAPL,MSFT,SPY" or "XIU.TO,XRE.TO" for Canadian ETFs) period: Time period — "1mo", "3mo", "6mo", "1y", "2y", "5y" (default: 1y)
Common symbols: US: SPY (S&P 500), QQQ (Nasdaq), DIA (Dow), VTI (total market) Canada: XIU.TO (TSX 60), XRE.TO (REIT), XIC.TO (composite) Crypto: BTC-USD, ETH-USD Commodities: GC=F (gold), CL=F (oil)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbols | Yes | ||
| period | No | 1y |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |