一键导入
yfinance
查询全球股票行情、财务报表、分析师评级、期权链、选股筛选、K线下载等。 覆盖美股/港股/A股/全球市场。当用户问到股票价格、行情、K线、财务数据、 PE/市值/分红/持仓/期权/分析师评级/选股筛选等金融市场数据时触发。 数据来源 Yahoo Finance,仅限研究和教育用途。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
查询全球股票行情、财务报表、分析师评级、期权链、选股筛选、K线下载等。 覆盖美股/港股/A股/全球市场。当用户问到股票价格、行情、K线、财务数据、 PE/市值/分红/持仓/期权/分析师评级/选股筛选等金融市场数据时触发。 数据来源 Yahoo Finance,仅限研究和教育用途。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
飞书云文档(v2):创建和编辑飞书文档。使用本 skill 时,docs +create、docs +fetch、docs +update 必须携带 --api-version v2;默认使用 DocxXML 格式(也支持 Markdown)。创建文档、获取文档内容(支持 simple/with-ids/full 三种导出详细度,以及 full/outline/range/keyword/section 五种局部读取模式,可按目录、block id 区间、关键词或标题自动成节只拉部分内容以节省上下文)、更新文档(八种指令:str_replace/block_insert_after/block_copy_insert_after/block_replace/block_delete/block_move_after/overwrite/append)、上传和下载文档中的图片和文件、搜索云空间文档。当用户需要创建或编辑飞书文档、读取文档内容、在文档中插入图片、搜索云空间文档时使用;如果用户是想按名称或关键词先定位电子表格、报表等云空间对象,也优先使用本 skill 的 docs +search 做资源发现。
Send and read emails through SMTP and POP3 from one-line natural language commands. Use when users ask to quickly send a mail ("发邮件给...") or check inbox mail ("查看最近N封邮件"), or when a ready-to-run Bun/JS CLI mail assistant with 163 Mail compatible defaults is needed.
Real-time web search and page reading using Aliyun IQS APIs. Use this skill FIRST when the user needs current information, news, facts verification, URL content extraction, or any web-based research. This skill provides structured search results with source links, markdown-formatted content extraction, and supports various search engines including real-time news search and deep research modes.
| name | yfinance |
| description | 查询全球股票行情、财务报表、分析师评级、期权链、选股筛选、K线下载等。 覆盖美股/港股/A股/全球市场。当用户问到股票价格、行情、K线、财务数据、 PE/市值/分红/持仓/期权/分析师评级/选股筛选等金融市场数据时触发。 数据来源 Yahoo Finance,仅限研究和教育用途。 |
通过 Yahoo Finance 公开 API 获取全球金融市场数据(基于 yahoo-finance2)
bun ./tools/yf_cli.js <subcommand> [flags]
首次使用需安装依赖:
cd tools && bun install
| 市场 | 格式 | 示例 |
|---|---|---|
| 美股 | 直接代码 | AAPL, MSFT, GOOG |
| A股上交所 | 代码.SS | 600519.SS(茅台), 601318.SS(平安) |
| A股深交所 | 代码.SZ | 000858.SZ(五粮液), 000001.SZ(平安银行) |
| 港股 | 代码.HK | 0700.HK(腾讯), 9988.HK(阿里) |
| 日股 | 代码.T | 7203.T(丰田) |
| 英股 | 代码.L | SHEL.L(壳牌) |
| ETF | 直接代码 | SPY, QQQ, VOO |
| 指数 | ^前缀 | ^GSPC(标普500), ^DJI(道琼斯), ^IXIC(纳斯达克) |
| 加密货币 | XXX-USD | BTC-USD, ETH-USD |
bun ./tools/yf_cli.js quote --symbols AAPL
bun ./tools/yf_cli.js quote --symbols "AAPL,MSFT,GOOG"
bun ./tools/yf_cli.js quote --symbols 600519.SS --json
多个代码用逗号分隔,一次批量请求。返回:当前价、涨跌额/幅、开高低收、成交量、市值、PE、52周高低
bun ./tools/yf_cli.js history --symbol AAPL --period 5d --interval 1d
bun ./tools/yf_cli.js history --symbol 600519.SS --period 1mo
bun ./tools/yf_cli.js history --symbol MSFT --period 1y --interval 1wk
period 可选: 1d, 5d, 1mo, 3mo, 6mo, 1y, 2y, 5y, 10y, ytd, max
interval 可选: 1m, 2m, 5m, 15m, 30m, 60m, 90m, 1h, 1d, 5d, 1wk, 1mo, 3mo
bun ./tools/yf_cli.js info --symbol AAPL
返回:公司名称、行业、国家、员工数、市值、PE/PB/PS、分红率、ROE/ROA、利润率、负债率等
bun ./tools/yf_cli.js financials --symbol AAPL --type income
bun ./tools/yf_cli.js financials --symbol MSFT --type balance --quarterly
bun ./tools/yf_cli.js financials --symbol GOOG --type cashflow --json
type: income(利润表), balance(资产负债表), cashflow(现金流量表)
--quarterly 获取季报,默认年报。数据来自 fundamentals time-series,指标为行、报告期为列
bun ./tools/yf_cli.js holders --symbol AAPL
返回:内部人/机构持股比例、机构持仓Top10、内部人交易记录
bun ./tools/yf_cli.js dividends --symbol AAPL
返回:历史分红记录(最近20条)、股票拆分记录
bun ./tools/yf_cli.js options --symbol AAPL
bun ./tools/yf_cli.js options --symbol AAPL --date 2026-06-20
返回:到期日列表、看涨/看跌期权的行权价、最新价、买卖价、成交量、持仓量、隐含波动率
bun ./tools/yf_cli.js analyst --symbol AAPL
返回:综合评级、评级均分、分析师数量、目标价(高/低/均/中位)、评级趋势、升降级记录
bun ./tools/yf_cli.js news --symbol AAPL --limit 5
bun ./tools/yf_cli.js compare --symbols "AAPL,MSFT,GOOG"
返回对比表:价格、市值、PE、前瞻PE、PB、分红率、ROE、利润率、Beta、52周高低
bun ./tools/yf_cli.js search --query "electric vehicle"
bun ./tools/yf_cli.js search --query bank
按关键词搜索标的与新闻。Yahoo 搜索端点对中文等非 ASCII 关键词返回 400,
查中概/A股/港股请直接用代码(如 0700.HK)或英文名
bun ./tools/yf_cli.js market --market us_market
bun ./tools/yf_cli.js market --market hk_market
通过各市场代表指数汇总行情。market 可选:
us_market, gb_market, hk_market, cn_market, jp_market, de_market, fr_market, in_market
bun ./tools/yf_cli.js screen --preset day_gainers
bun ./tools/yf_cli.js screen --preset undervalued_large_caps --count 50
bun ./tools/yf_cli.js screen --preset most_actives --region US --json
使用 Yahoo 内置预设筛选器(不支持自定义条件组合)。--preset 取值:
aggressive_small_caps, conservative_foreign_funds, day_gainers, day_losers, growth_technology_stocks, high_yield_bond, most_actives, most_shorted_stocks, portfolio_anchors, small_cap_gainers, solid_large_growth_funds, solid_midcap_growth_funds, top_mutual_funds, undervalued_growth_stocks, undervalued_large_caps
可选 --region(如 US/GB/DE)、--count(默认25)
bun ./tools/yf_cli.js download --symbols "AAPL,MSFT" --period 1y --output stocks.csv
长表格式输出:Symbol,Date,Open,High,Low,Close,AdjClose,Volume
--json 所有子命令均支持,输出 JSON 格式cd tools && bun install(yahoo-finance2)