sn-search-finance
用于搜索金融市场、证券、上市公司基本面、价格、K 线、披露文件、财经新闻、A 股数据、港股或全球 ticker,可使用 yfinance、mootdx、API 脚本或 browser-use。
npx skills add OpenSenseNova/SenseNova-Skills --skill sn-search-finance --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# 金融财经搜索 ## 凭证配置 API key、token 与 cookie 统一建议写在仓库根目录 `.env`(参考 `.env.example`),并由 runtime 或用户在执行前加载为同名环境变量。脚本仍只从环境变量或显式 CLI 参数读取凭证;不要把真实密钥写入 skill payload、报告、日志或提交。 用于证券、指数、基金、财务报表、行情、K 线、公告线索、财经新闻和公司基本面的检索。API 脚本和 browser-use 可以混合使用;按任务需要选择,不设固定优先级。 ## 工作流 1. 先确认市场和标的:A 股/港股/美股/全球 ticker、公司名、证券代码、时间区间、需要的数据口径。 2. 结构化数据用 `scripts/finance_search.py`:yfinance 查全球 ticker、行情、财务、新闻、SEC filings;mootdx 查通达信/A 股行情、K 线、财务包。 3. 需要页面证据、新闻正文、交互筛选、图表核对、脚本失败或字段缺失时,用 browser-use 打开 Yahoo Finance、交易所、上市公司 IR、公告页或搜索结果页交叉核对。 4. 输出结论时保留 ticker/证券代码、市场、数据区间、指标口径和来源 URL;不要把脚本结果当作投资建议。 5. 遇到登录墙、验证码、付费墙、商业授权、异常限流或禁止用途提示时停止该来源,改用可公开访问的页面或说明无法取得。 ## API 脚本 脚本:`scripts/finance_search.py`。输出 JSON。依赖按命令懒加载。 首次运行或脚本提示缺库时,使用本技能的依赖清单安装到当前 Python 环境: ```bash python3 -m pip install -r requirements.txt ``` 不要在脚本内部自动安装依赖。若安装失败、网络不可用或包不可用,停止使用对应命令并改用公开网页来源,说明缺少依赖。 ### yfinance Yahoo Finance 代码后缀:美股直接用 `AAPL`;港股可用 `0700.HK`;A 股可用 `600036.SH`、`600036.SS`、`000001.SZ`,脚本会把 `.SH` 自动转成 `.SS`。不想自动转换时加 `--no-normalize`。 ```bash python scripts/finance_search.py yf-search "Tesla" --limit 5 --news-count 5 python scripts/finance_search.py yf-lookup "Tencent" --type stock --limit 10 python scripts/finance_search.py yf-profile AAPL
- 凭证配置
- 工作流
- API 脚本
- yfinance
- mootdx
- browser-use 场景
python3 -m pip install -r requirements.txt python scripts/finance_search.py yf-search "Tesla" --limit 5 --news-count 5 python scripts/finance_search.py yf-lookup "Tencent" --type stock --limit 10 python scripts/finance_search.py yf-profile AAPL --fields longName,sector,industry,marketCap,currentPrice,trailingPE python scripts/finance_search.py yf-history AAPL --period 6mo --interval 1d --limit 120 python scripts/finance_search.py yf-download AAPL MSFT NVDA --period 1mo --interval 1d --group-by ticker python scripts/finance_search.py yf-financials MSFT --statement income --freq yearly python scripts/finance_search.py yf-financials MSFT --statement balance --freq quarterly python scripts/finance_search.py yf-news TSLA --limit 8 python scripts/finance_search.py yf-sec-filings AAPL
What does the sn-search-finance skill do?
用于搜索金融市场、证券、上市公司基本面、价格、K 线、披露文件、财经新闻、A 股数据、港股或全球 ticker,可使用 yfinance、mootdx、API 脚本或 browser-use。
How do I install it?
Run `npx skills add OpenSenseNova/SenseNova-Skills --skill sn-search-finance --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From OpenSenseNova/SenseNova-Skills, a repository with 4,855 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
