Loading...
Loading...
Fetch financial and market data using the yfinance Python library. Use this skill whenever the user asks for stock prices, historical data, financial statements, options chains, dividends, earnings, analyst recommendations, or any market data. Triggers include: any mention of stock price, ticker symbol (AAPL, MSFT, TSLA, etc.), "get me the financials", "show earnings", "what's the price of", "download stock data", "options chain", "dividend history", "balance sheet", "income statement", "cash flow", "analyst targets", "institutional holders", "compare stocks", "screen for stocks", or any request involving Yahoo Finance data. Always use this skill even if the user only provides a ticker — infer intent from context.
npx skill4agent add himself65/finance-skills yfinance-dataimport subprocess, sys
subprocess.check_call([sys.executable, "-m", "pip", "install", "-q", "yfinance"])references/api_reference.md| User Request | Data Category | Primary Method |
|---|---|---|
| Stock price, quote | Current price | |
| Price history, chart data | Historical OHLCV | |
| Balance sheet | Financial statements | |
| Income statement, revenue | Financial statements | |
| Cash flow | Financial statements | |
| Dividends | Corporate actions | |
| Stock splits | Corporate actions | |
| Options chain, calls, puts | Options data | |
| Earnings, EPS | Analysis | |
| Analyst price targets | Analysis | |
| Recommendations, ratings | Analysis | |
| Upgrades/downgrades | Analysis | |
| Institutional holders | Ownership | |
| Insider transactions | Ownership | |
| Company overview, sector | General info | |
| Compare multiple stocks | Bulk download | |
| Screen/filter stocks | Screener | |
| Sector/industry data | Market data | |
| News | News | |
import subprocess, sys
subprocess.check_call([sys.executable, "-m", "pip", "install", "-q", "yfinance"])
import yfinance as yf
ticker = yf.Ticker("AAPL")
# ... use the appropriate method from the referenceyf.download()ticker.optionsticker.option_chain(date)quarterly_ticker.quarterly_income_stmtticker.quarterly_balance_sheetticker.quarterly_cashflow.to_string().to_markdown()| Periods | |
|---|---|
| Intervals | |
references/api_reference.md