Agent skill · data analytics · himself65
yfinance-data
Fetch financial and market data with the yfinance Python library (Yahoo Finance). Use this skill whenever the user wants stock data: current quotes and price history, financial statements (income statement, balance sheet, cash flow), options chains, dividends and splits, earnings and analyst estimates, price targets and ratings, institutional and insider holdings, news, multi-ticker comparisons, stock screens, or sector and industry data. Use it even when the user gives only a ticker symbol (AAPL, MSFT, TSLA) and the intent has to be inferred. For earnings previews or recaps, estimate revisions, valuation, correlation, liquidity, or ETF premium analysis, prefer the dedicated skill.
Why this skill is useful
Provides specific methods and patterns for fetching financial data using the yfinance library that the AI wouldn't reliably generate on its own.
What it needs
Requires yfinance installed locally. About 3k tokens when loaded. Last updated 2026-08-05. 3,127 stars on the source repository.
What this skill does
yfinance Data Skill If your host has not already executed the shell probes below (for example, in Codex), run the commands inside the ! wrappers with its shell tool before choosing a setup path. Use the actual output; if shell access is unavailable, report that limitation. Fetches financial and market data from Yahoo Finance using the yfinance Python library. Important: yfinance is not affiliated with Yahoo, Inc. Data is for research and educational purposes. --- Step 1: Ensure yfinance Is Available Current environment status: If YFINANCENOTINSTALLED, install it before running any code: If yfinance is already installed, skip the install step and proceed directly. --- Step 2: Identify What the User Needs Match the user's request to one or more data categories below, then use the corresponding code from references/apireference.md. User Request Data Category Primary Method --- --- --- Stock price, quote Current price ticker.info or ticker.fastinfo Price history, chart data Historical OHLCV ticker.history() or yf.download() Balance sheet Financial statements ticker.balancesheet Income statement, revenue Financial statements ticker.incomestmt Cash flow Financial statements ticker.cashflow Dividends Corporate actions ticker.dividends Stock splits Corporate actions ticker.splits Options chain, calls, puts Options data ticker.optionchain() Earnings, EPS Analysis ticker.earningshistory Analyst price targets Analysis ticker.analystpricetargets Recommendations, ratings Analysis ticker.recommendations Upgrades/downgrades Analysis ticker.upgradesdowngrades Institutional holders Ownership ticker.institutionalholders Insider transactions Ownership ticker.insidertransactions Company overview, sector General info ticker.info Compare multiple stocks Bulk download yf.download() Screen/filter stocks Screener yf.screen() + yf.EquityQuery Sector/industry data Market data yf.Sector / yf.Industry News News ticker.news --- Step 3: Write and Execute the Code General pattern Key rules 1. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills himself65/yfinance-data