npx skills add https://github.com/0juano/agent-skills --skill yahoo-finance由 Yahoo Finance 提供支持的金融数据终端。所有命令均通过 yf 脚本执行。
脚本位于 {baseDir}/scripts/yf。它使用 uv run --script 并包含内联的 PEP 723 元数据——依赖项会在首次运行时自动安装。
chmod +x {baseDir}/scripts/yf
| 命令 | 用途 | 示例 |
|---|---|---|
yf price TICKER | 快速查看价格 + 涨跌幅 + 成交量 | yf price YPF |
yf quote TICKER | 详细报价(52周范围、市盈率、股息率) | yf quote AAPL |
yf compare T1,T2,T3 | 并排比较表格 | yf compare YPF,PAM,GGAL |
yf credit TICKER |
所有命令都支持 --json 参数以输出机器可读格式。
yf macro → 一次性获取美债收益率、美元指数、恐慌指数、大宗商品、比特币、阿根廷比索数据yf price TICKER → 快速获取价格/涨跌幅/成交量yf quote → yf fundamentals → yf historyyf credit TICKER → 杠杆比率、利息覆盖率、债务结构yf fx → 所有主要拉美货币对美元汇率yf flows ETF → 前十大持仓、资产管理规模、费用比率yf compare → 并排比较以评估相对价值脚本能够优雅地处理无效股票代码、数据缺失和速率限制,并提供清晰的错误信息。如果 Yahoo Finance 触发速率限制,请稍等片刻后重试。
默认情况下,输出使用 Rich 表格以提供清晰的终端显示。在任何命令后添加 --json 参数,即可获得适合管道传输或进一步处理的结构化 JSON 输出。
每周安装量
207
代码仓库
首次出现
2026年2月2日
安全审计
Gen Agent Trust HubFailSocketPassSnykWarn
安装于
opencode169
openclaw167
gemini-cli166
codex159
github-copilot155
cursor151
Financial data terminal powered by Yahoo Finance. All commands via the yf script.
The script is at {baseDir}/scripts/yf. It uses uv run --script with inline PEP 723 metadata — dependencies install automatically on first run.
chmod +x {baseDir}/scripts/yf
| Command | Purpose | Example |
|---|---|---|
yf price TICKER | Quick price + change + volume | yf price YPF |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 信用分析:杠杆率、覆盖率、债务期限 |
yf credit YPF |
yf macro | 早盘宏观数据仪表板(美债、美元指数、恐慌指数、原油、黄金、比特币、阿根廷比索) | yf macro |
yf fx [BASE] | 拉美主要货币汇率(阿根廷比索、巴西雷亚尔、智利比索、墨西哥比索、哥伦比亚比索) | yf fx USD |
yf flows ETF | ETF 前十大持仓 + 基金数据 | yf flows EMB |
yf history TICKER [PERIOD] | 价格历史(1天/5天/1月/3月/6月/1年/年初至今/最大) | yf history YPF 3mo |
yf fundamentals TICKER | 完整财务报表(利润表、资产负债表、现金流量表) | yf fundamentals YPF |
yf news TICKER | 近期新闻标题 | yf news YPF |
yf search QUERY | 查找股票代码 | yf search "argentina bond" |
yf quote TICKER | Detailed quote (52w, PE, yield) | yf quote AAPL |
yf compare T1,T2,T3 | Side-by-side comparison table | yf compare YPF,PAM,GGAL |
yf credit TICKER | Credit analysis: leverage, coverage, debt maturity | yf credit YPF |
yf macro | Morning macro dashboard (UST, DXY, VIX, oil, gold, BTC, ARS) | yf macro |
yf fx [BASE] | LatAm FX rates (ARS, BRL, CLP, MXN, COP) | yf fx USD |
yf flows ETF | ETF top holdings + fund data | yf flows EMB |
yf history TICKER [PERIOD] | Price history (1d/5d/1mo/3mo/6mo/1y/ytd/max) | yf history YPF 3mo |
yf fundamentals TICKER | Full financials (IS, BS, CF) | yf fundamentals YPF |
yf news TICKER | Recent news headlines | yf news YPF |
yf search QUERY | Find tickers | yf search "argentina bond" |
All commands support --json for machine-readable output.
yf macro → get UST yields, DXY, VIX, commodities, BTC, ARS in one shotyf price TICKER → fast price/change/volumeyf quote → yf fundamentals → yf historyyf credit TICKER → leverage ratios, interest coverage, debt breakdownyf fx → all major LatAm pairs vs USDyf flows ETF → top holdings, AUM, expense ratioyf compare → side-by-side for relative valueThe script handles bad tickers, missing data, and rate limits gracefully with clear error messages. If Yahoo Finance rate-limits, wait a moment and retry.
By default, output uses Rich tables for clean terminal display. Add --json to any command for structured JSON output suitable for piping or further processing.
Weekly Installs
207
Repository
First Seen
Feb 2, 2026
Security Audits
Installed on
opencode169
openclaw167
gemini-cli166
codex159
github-copilot155
cursor151
React Router 框架模式指南:全栈开发、文件路由、数据加载与渲染策略
1,200 周安装