New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Fetch and analyze stock quotes, price history, financials, options, and ownership data via yfinance.

skills.sh installs
4.5K
GitHub stars
3.6K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers quotes, OHLCV price history, financial statements, options chains, dividends, splits, and analyst data from Yahoo Finance
  • Includes an API reference (references/api_reference.md) with code for every data category, plus multi-ticker downloads and stock screens
  • Enforces try/except wrapping and timezone-aware date handling, and limits intraday history to about 7 days for 1m data
  • Designed for research and educational use when a ticker or financial data request needs a quick, inferred data pull

Install

$ npx -y skills add himself65/finance-skills --skill yfinance-data -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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:

!`python3 -c "exec('try:\n import yfinance\n print(\'yfinance \' + yfinance.__version__ + \' installed\')\nexcept Exception:\n print(\'YFINANCE_NOT_INSTALLED\')')"`

If YFINANCE_NOT_INSTALLED, install it before running any code:

import subprocess, sys
subprocess.check_call([sys.executable, "-m", "pip", "install", "-q", "yfinance"])

If yfinance is already installed, skip the install step and proceed directly.


Step 2: Identify What the User Needs

Details

Repository
github.com/himself65/finance-skills
Categories
Finance & Trading, Data Science & Analytics, Python
First seen
Apr 16, 2026

More from himself65/finance-skills

All 24

Similar to Yfinance Data

More Finance & Trading