yahoo-finance-python
Download financial & market data from Yahoo Finance using yfinance.
Skill by Jansen611
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jansen611-yahoo-finance-python
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data, finance
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/yahoo-finance-python
Tools it pre-approves 1
From allowed-tools in SKILL.md: the agent may use these without asking you each time.
Bash
What's inside
- Skill name
yahoo-finance-python- Description
- Download financial & market data from Yahoo Finance using yfinance. Supports stock quotes, historical prices, fundamentals, dividends, splits, and more. Triggers when user mentions: - "get stock price" or "stock data" - "download market data" or "financial data" - "yahoo finance" or "yfinance" - wants to pull ticker data, historical prices, fundamentals - "fetch company financials" or "market cap"
- License
- MIT
- Allowed tools
- Bash
- Instructions
- 184 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Pre-approves any shell command
Files (2)
- SKILL.md
- stock_snapshot.py · scripts/
SKILL.md (first lines)
# Yahoo Finance Python Skill
Fetch financial & market data from Yahoo Finance using [ranaroussi/yfinance](https://github.com/ranaroussi/yfinance).
## Pre-Check
Before using yfinance, follow this check sequence:
### Step 1: Check if the yfinance module is importable
```bash
python -c "import yfinance" 2>/dev/null && echo "found" || echo "not found"
# or check in ~/.venv
~/.venv/bin/python -c "import yfinance" 2>/dev/null && echo "found in venv" || echo "not found in venv"
```
If found → skip to [Usage](#usage).
### Step 2: Check if ~/.venv exists
```bash
test -f ~/.venv/bin/python && echo "venv exists" || echo "venv not found"
```
If not found, create it:
```bash
python3 -m venv ~/.venv
```
### Step 3: Install yfinance into ~/.venv
```bash
~/.venv/bin/pip install yfinance
```
After installation, verify:
```bash
~/.venv/bin/python -c "import yfinance; print(yfinance.__version__)"
```
## Usage
All Python code below should be run with `~/.venv/bin/python` to ensure the module is available.
### Import
```python
import yfinance as yf
```
### Single Ticker
```python
# Create a Ticker object
msft = yf.Ticker("MSFT")
# Get general info
info = msft.info
print(info.get("shortName"))
print(info.get("currentPrice"))
print(info.get("marketCap"))
print(info.get("sector"))
```
### Historical Price Data
```python
# Get historical price data
hist = msft.history(period="1mo") # 1 day, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max
hist = msft.history(start="2025-01-01", end="2025-12-31") # date range
hist = msft.history(period="1mo", interval="1h") # 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo
# Returns a pandas DataFrame with: Open, High, Low, Close, Volume, Dividends, Stock Splits
print(hist)
```
### Multiple Tickers (Download)
```python
# Download data for multiple tickers at once
data = yf.download("AAPL MSFT GOOGL", period="1mo")
print(data)
# Or with a list
tickers = ["AAPL", "MSFT", "GOOGL"]
data = yf.download(tickers, period="6mo")
```
### Fundamentals
```python
msft = yf.Ticker("MSFT")
# Financial statements
msft.financials # Income statement
msft.balance_sheet # Balance sheet
msft.cashflow # Cash flow statement
msft.quarterly_financials
msft.quarterly_balance_sheet
msft.quarterly_cashflow
# Dividends & Splits
msft.dividends # Dividend history
msft.splits # Stock split history
msft.actions # Combined dividends + splits
# Earnings
msft.earnings_dates # Upcoming/previous earnings dates
# Institutional & major holders
msft.institutional_holders
msft.major_holders
# Analyst recommendations
msft.recommendations
```From Jansen611/Agent-Skills, MIT.
More from Jansen611/Agent-Skills
- 0.585score
weread-skills
Jansen611
微信读书助手 — 搜索书籍、管理书架、查看笔记划线、浏览书评、阅读统计、发现推荐好书
SkillAFreshness: A★ 2Claude Code +9 - 0.573score
code-review
Jansen611
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards and Spec.
SkillAFreshness: A★ 2Claude Code +9 - 0.563score
markitdown-python
Jansen611
Convert files to Markdown using Microsoft's MarkItDown tool.
SkillBFreshness: B★ 2Claude Code +9 - 0.563score
youtube-dlp-python
Jansen611
Download YouTube video transcripts (subtitles/captions) using yt-dlp, with faster-whisper as fallback for local transcription.
SkillBFreshness: B★ 2Claude Code +9 - 0.557score
himalaya-email-rust
Jansen611
Manage email from the terminal using Himalaya v2.
SkillBFreshness: B★ 2Claude Code +9 - 0.512score
siri-shortcut-editing
Jansen611
Edit macOS Siri Shortcuts (.shortcut files) programmatically — decode to XML, modify, and re-sign.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
pptx
Jansen611
Create professional PowerPoint (.pptx) presentations using pptxgenjs (JavaScript).
SkillCFreshness: C★ 2Claude Code +9 - 0.496score
handoff-conversation
Jansen611
Compact the current conversation into a handoff document for another agent to pick up.
SkillCFreshness: C★ 2Claude Code +9 - 0.477score
grill-me
Jansen611
Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree.
SkillCFreshness: C★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- May 22, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Jansen611/Agent-Skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Jansen611
- 0.585score
weread-skills
Jansen611
微信读书助手 — 搜索书籍、管理书架、查看笔记划线、浏览书评、阅读统计、发现推荐好书
SkillAFreshness: A★ 2Claude Code +9 - 0.573score
code-review
Jansen611
Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards and Spec.
SkillAFreshness: A★ 2Claude Code +9 - 0.563score
markitdown-python
Jansen611
Convert files to Markdown using Microsoft's MarkItDown tool.
SkillBFreshness: B★ 2Claude Code +9 - 0.563score
youtube-dlp-python
Jansen611
Download YouTube video transcripts (subtitles/captions) using yt-dlp, with faster-whisper as fallback for local transcription.
SkillBFreshness: B★ 2Claude Code +9 - 0.557score
himalaya-email-rust
Jansen611
Manage email from the terminal using Himalaya v2.
SkillBFreshness: B★ 2Claude Code +9 - 0.512score
siri-shortcut-editing
Jansen611
Edit macOS Siri Shortcuts (.shortcut files) programmatically — decode to XML, modify, and re-sign.
SkillCFreshness: C★ 2Claude Code +9
Cite this page
yahoo-finance-python skill. Agent Mart. https://agentmart.dev/skills/jansen611-yahoo-finance-python (last updated 2026-10-24)