Get stock prices, quotes, fundamentals, earnings, options, dividends, and analyst ratings using Yahoo Finance. Uses yfinance library - no API key required.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install yahoo-finance或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install yahoo-finance⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/yahoo-finance/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- 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. ---
A Python CLI for fetching comprehensive stock data from Yahoo Finance using yfinance.
The script requires uv - an extremely fast Python package manager. Check if it's installed:
uv --version
If not installed, install it using one of these methods:
curl -LsSf https://astral.sh/uv/install.sh | sh
brew install uv
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
pip install uv
After installation, restart your terminal or run:
source ~/.bashrc # or ~/.zshrc on macOS
The yf script uses PEP 723 inline script metadata - dependencies are auto-installed on first run.
# 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.
yf AAPL # shorthand for price
yf price AAPL
yf quote MSFT
yf fundamentals NVDA
Shows: PE ratios, EPS, market cap, margins, ROE/ROA, analyst targets.
yf earnings TSLA
Shows: Next earnings date, EPS estimates, earnings history with surprises.
yf profile GOOGL
Shows: Sector, industry, employees, website, address, business description.
yf dividends KO
Shows: Dividend rate/yield, ex-date, payout ratio, recent dividend history.
yf ratings AAPL
Shows: Buy/hold/sell distribution, mean rating, recent upgrades/downgrades.
yf options SPY
Shows: Near-the-money calls and puts with strike, bid/ask, volume, OI, IV.
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
yf compare AAPL,MSFT,GOOGL
yf compare RELIANCE.NS,TCS.NS,INFY.NS
Side-by-side comparison with price, change, 52W range, market cap.
yf search "reliance industries"
yf search "bitcoin"
yf search "s&p 500 etf"
# 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
Install uv using the instructions above.
Yahoo Finance may rate limit excessive requests. Wait a few minutes and try again.
yf search "company name"安装 Yahoo Finance 后,可以对 AI 说这些话来触发它
Help me get started with Yahoo Finance
Explains what Yahoo Finance does, walks through the setup, and runs a quick demo based on your current project
Use Yahoo Finance to get stock prices, quotes, fundamentals, earnings, options, dividend...
Invokes Yahoo Finance with the right parameters and returns the result directly in the conversation
What can I do with Yahoo Finance in my finance & investment workflow?
Lists the top use cases for Yahoo Finance, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/yahoo-finance/ 目录(个人级,所有项目可用),或 .claude/skills/yahoo-finance/(项目级)。重启 AI 客户端后,用 /yahoo-finance 主动调用,或让 AI 根据上下文自动发现并使用。
Yahoo Finance 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Yahoo Finance 可免费安装使用。请查阅仓库了解许可证信息。
Get stock prices, quotes, fundamentals, earnings, options, dividends, and analyst ratings using Yahoo Finance. Uses yfinance library - no API key required.
Yahoo Finance 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using Yahoo Finance
Identifies repetitive steps in your workflow and sets up Yahoo Finance to handle them automatically