This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install yahoo-finance-cli或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install yahoo-finance-cli⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/yahoo-finance-cli/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: yahoo-finance description: This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance. metadata: {"clawdbot":{"requires":{"bins":["jq","yf"]},"install":[{"id":"brew","kind":"brew","package":"jq","bins":["jq"],"label":"Install jq (Homebrew)"},{"id":"npm","kind":"node","package":"yahoo-finance2","bins":["yahoo-finance"],"label":"Install Yahoo Finance CLI (npm)"},{"id":"link-yf","kind":"exec","command":"ln -sf $(npm bin -g)/yahoo-finance /usr/local/bin/yf","label":"Link yf binary"}]}} ---
A Node.js CLI for fetching comprehensive stock data from Yahoo Finance using the yahoo-finance2 library.
yahoo-finance2 installed globally or available as yfjqbrew install jq
npm install yahoo-finance2
sudo ln -s /opt/homebrew/bin/yahoo-finance /usr/local/bin/yf
The tool is available as yf. It outputs JSON, which can be piped to jq for filtering.
yf <module> <symbol> [queryOptions]
Get real-time price, change, and basic data.
yf quote AAPL
yf quote AAPL | jq '.regularMarketPrice'
Get detailed modules like earnings, financial data, and profiles.
# Get specific sub-modules
yf quoteSummary AAPL '{"modules":["assetProfile", "financialData", "defaultKeyStatistics"]}'
# Common modules to request:
# - assetProfile (Company info, sector)
# - financialData (Target price, margins, cash)
# - defaultKeyStatistics (Enterprise value, float, shares)
# - calendarEvents (Earnings dates)
# - earnings (History and trend)
# - recommendationTrend (Analyst ratings)
# - upgradeDowngradeHistory
Get technical and fundamental insights (valuation, outlook).
yf insights AAPL
Search for symbols.
yf search "Apple"
yf search "BTC-USD"
Get historical OHLCV data. Note: historical is deprecated; use chart instead.
# Deprecated - use chart instead
yf historical AAPL '{"period1":"2024-01-01","period2":"2024-12-31"}'
# Recommended: use chart
yf chart AAPL '{"period1":"2024-01-01","period2":"2024-12-31"}'
See what's trending.
yf trendingSymbols US
Quick Price Check
# Full JSON then filter with jq
yf quote NVDA | jq '{symbol: .symbol, price: .regularMarketPrice, changePct: .regularMarketChangePercent}'
Next Earnings Date
# Use single quotes around the JSON option in zsh/bash
yf quoteSummary TSLA '{"modules":["calendarEvents"]}' | jq '.calendarEvents.earnings.earningsDate'
Analyst Recommendations
yf quoteSummary AAPL '{"modules":["recommendationTrend"]}'
Company Profile
yf quoteSummary MSFT '{"modules":["assetProfile"]}'
Historical OHLCV
# Using chart (recommended)
yf chart AAPL '{"period1":"2024-01-01","period2":"2024-12-31","interval":"1d"}' | jq '.quotes[0:5]'
# Using historical (deprecated, but still works)
yf historical AAPL '{"period1":"2024-01-01","period2":"2024-12-31","interval":"1d"}' | jq '.[0:5]'
Search for Symbols
yf search 'Apple'
yf search 'BTC-USD'
Trending Symbols (US)
yf trendingSymbols US
Insights (valuation, outlook)
yf insights AAPL
~/.yf2-cookies.json). If you encounter issues, try deleting this file.jq to parse it for scripts or readability.Additional tips:
rm -f ~/.yf2-cookies.json
yf quote AAPL
yf quote AAPL | jq -r '.regularMarketPrice'安装 Yahoo Finance CLI 后,可以对 AI 说这些话来触发它
Help me get started with Yahoo Finance CLI
Explains what Yahoo Finance CLI does, walks through the setup, and runs a quick demo based on your current project
Use Yahoo Finance CLI to this skill should be used when the user asks to "get stock prices",...
Invokes Yahoo Finance CLI with the right parameters and returns the result directly in the conversation
What can I do with Yahoo Finance CLI in my finance & investment workflow?
Lists the top use cases for Yahoo Finance CLI, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/yahoo-finance-cli/ 目录(个人级,所有项目可用),或 .claude/skills/yahoo-finance-cli/(项目级)。重启 AI 客户端后,用 /yahoo-finance-cli 主动调用,或让 AI 根据上下文自动发现并使用。
Yahoo Finance CLI 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Yahoo Finance CLI 可免费安装使用。请查阅仓库了解许可证信息。
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.
Yahoo Finance CLI 属于「Finance & Investment」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my finance & investment tasks using Yahoo Finance CLI
Identifies repetitive steps in your workflow and sets up Yahoo Finance CLI to handle them automatically