
Yahoo Finance
Pull live quotes, fundamentals, earnings, options, and analyst data from Yahoo Finance via a Python CLI without API keys.
Overview
yahoo-finance is an agent skill most often used in Grow (also Idea and Validate) that fetches stock and fundamentals data via a yfinance Python CLI without an API key.
Install
npx skills add https://github.com/gracefullight/stock-checker --skill yahoo-financeWhat is this skill?
- yfinance-backed CLI—no Yahoo API key required
- Quotes, fundamentals, earnings, options, dividends, and analyst ratings
- PEP 723 inline deps with uv for one-command runs
- Python 3.11+ with install paths for macOS, Linux, and Windows
- yf executable pattern with optional PATH symlink
- Python 3.11+ requirement
- Skill version 1.0.0 in catalog metadata
Adoption & trust: 3.9k installs on skills.sh; 28 GitHub stars; 1/3 security scanners passed (skills.sh audits).
What problem does it solve?
You want quick ticker fundamentals and quotes in terminal workflows but do not want to register for a separate market data API.
Who is it for?
Indie builders automating market lookups in Python agents, personal finance scripts, or lightweight competitive ticker research.
Skip if: Licensed trading execution, real-time low-latency desks, or compliance-heavy institutional research without independent data verification.
When should I use this skill?
Need stock prices, quotes, fundamentals, earnings, options, dividends, or analyst ratings from Yahoo Finance using yfinance.
What do I get? / Deliverables
You run a uv-managed yf CLI that returns Yahoo Finance quotes, fundamentals, earnings, options, dividends, and ratings for scripting or agent queries.
- Executable yf CLI fetching Yahoo Finance market datasets
- Documented install and PATH symlink setup for agent invocation
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Market and portfolio checks most often recur after launch when you track benchmarks, competitors as tickers, or personal finance adjacent to your business. The skill outputs quantitative market analytics feeds rather than auth integrations or deploy automation.
Where it fits
Pull competitor public tickers and margin hints before you commit to a fintech side project.
Anchor your SaaS pricing story against comparable public SaaS multiples from fundamentals commands.
Schedule yf checks on symbols tied to your niche for weekly growth retros.
How it compares
Keyless Yahoo CLI wrapper skill, not a Bloomberg terminal replacement or brokerage MCP server.
Common Questions / FAQ
Who is yahoo-finance for?
Solo developers who want scriptable US and global equity data through yfinance inside Claude Code or similar agents.
When should I use yahoo-finance?
In Grow for portfolio or KPI-adjacent analytics, in Idea for comp ticker research, or in Validate when pricing narratives need public market anchors—anytime you need quotes or fundamentals from the command line.
Is yahoo-finance safe to install?
It runs local Python and network calls to Yahoo; check the Security Audits panel on this page and audit the yf script path before symlinking into your PATH.
SKILL.md
READMESKILL.md - Yahoo Finance
{ "owner": "ajanraj", "slug": "yahoo-finance", "displayName": "Yahoo Finance", "latest": { "version": "1.0.0", "publishedAt": 1767817868261, "commit": "https://github.com/clawdbot/skills/commit/b4075a97b83899c6b532214f561d07c3ab282584" }, "history": [] } --- name: yahoo-finance description: Get stock prices, quotes, fundamentals, earnings, options, dividends, and analyst ratings using Yahoo Finance. Uses yfinance library - no API key required. --- # Yahoo Finance CLI A Python CLI for fetching comprehensive stock data from Yahoo Finance using yfinance. ## Requirements - Python 3.11+ - uv (for inline script dependencies) ## Installing uv The script requires `uv` - an extremely fast Python package manager. Check if it's installed: ```bash uv --version ``` If not installed, install it using one of these methods: ### macOS / Linux ```bash curl -LsSf https://astral.sh/uv/install.sh | sh ``` ### macOS (Homebrew) ```bash brew install uv ``` ### Windows ```powershell powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" ``` ### pip (any platform) ```bash pip install uv ``` After installation, restart your terminal or run: ```bash source ~/.bashrc # or ~/.zshrc on macOS ``` ## Installation The `yf` script uses PEP 723 inline script metadata - dependencies are auto-installed on first run. ```bash # Make executable chmod +x /path/to/skills/yahoo-finance/yf # Optionally symlink to PATH for global access ln -sf /path/to/skills/yahoo-finance/yf /usr/local/bin/yf ``` First run will install dependencies (yfinance, rich) to uv's cache. Subsequent runs are instant. ## Commands ### Price (quick check) ```bash yf AAPL # shorthand for price yf price AAPL ``` ### Quote (detailed) ```bash yf quote MSFT ``` ### Fundamentals ```bash yf fundamentals NVDA ``` Shows: PE ratios, EPS, market cap, margins, ROE/ROA, analyst targets. ### Earnings ```bash yf earnings TSLA ``` Shows: Next earnings date, EPS estimates, earnings history with surprises. ### Company Profile ```bash yf profile GOOGL ``` Shows: Sector, industry, employees, website, address, business description. ### Dividends ```bash yf dividends KO ``` Shows: Dividend rate/yield, ex-date, payout ratio, recent dividend history. ### Analyst Ratings ```bash yf ratings AAPL ``` Shows: Buy/hold/sell distribution, mean rating, recent upgrades/downgrades. ### Options Chain ```bash yf options SPY ``` Shows: Near-the-money calls and puts with strike, bid/ask, volume, OI, IV. ### History ```bash yf history GOOGL 1mo # 1 month history yf history TSLA 1y # 1 year yf history BTC-USD 5d # 5 days ``` Ranges: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max ### Compare ```bash yf compare AAPL,MSFT,GOOGL yf compare RELIANCE.NS,TCS.NS,INFY.NS ``` Side-by-side comparison with price, change, 52W range, market cap. ### Search ```bash yf search "reliance industries" yf search "bitcoin" yf search "s&p 500 etf" ``` ## Symbol Format - **US stocks:** AAPL, MSFT, GOOGL, TSLA - **Indian NSE:** RELIANCE.NS, TCS.NS, INFY.NS - **Indian BSE:** RELIANCE.BO, TCS.BO - **Crypto:** BTC-USD, ETH-USD - **Forex:** EURUSD=X, GBPUSD=X - **ETFs:** SPY, QQQ, VOO ## Examples ```bash # Quick price check yf AAPL # Get valuation metrics yf fundamentals NVDA # Next earnings date + history yf earnings TSLA # Options chain for SPY yf options SPY # Compare tech giants yf compare AAPL,MSFT,GOOGL,META,AMZN # Find Indian stocks yf search "infosys" # Dividend info for Coca-Cola yf dividends KO # Analyst ratings for Apple yf ratings AAPL ``` ## Troubleshooting ### "command not found: uv" Install uv using the instructions above. ### Rate limiting / connection errors Yahoo Finance may rate limit excessive requests. Wait a few minutes and try again. ### "No data" for a symbol - Verify the symbol exists: `yf search "company name"` - Some data (options, dividends) isn't available for all securities ## Technical Notes - Uses PEP 723 in