Realyujie/dsh-us-stocks
面向DeepSeek Harness的美国股市数据工具,基于yahoo-finance2构建
Project Overview项目介绍
dsh-us-stocks is a native plugin built exclusively for DeepSeek Harness (DSH) that provides six dedicated tools for retrieving US stock market data via the yahoo-finance2 library. Without this plugin, DSH agents would need to fall back on web scraping and ad-hoc parsing to get stock data, which is slow, inefficient, and often error-prone. The six tools natively integrated with DSH cover real-time quotes, historical price trends, full financial statements, analyst consensus ratings, recent market news, and institutional ownership data. It cuts down a typical multi-step stock analysis query from over 3 minutes to under 3 seconds, per the project’s benchmark data.
You can install the plugin directly through the DSH interface by sending a simple install command to the DSH agent, or manually via the DSH command line interface. For users who run DSH via npx, you can prefix all plugin commands with npx @deepseek-ai/dsh instead of installing DSH globally on your system. You can also update the plugin later via the same CLI command you used to install it. After installation, you can ask your DSH agent any US stock related questions, from checking a stock’s current price to pulling full quarterly financial statements for analysis.
The plugin is released under the open source MIT license, and includes built-in in-memory caching to reduce redundant requests to Yahoo Finance and speed up overall response times. The plugin also supports concurrent request de-duplication to avoid unnecessary upstream calls. Currently, it only supports US equities, and pulls data from Yahoo Finance’s unofficial, undocumented API, which is rate-limited and subject to change without notice. All data is provided for research purposes only, and does not constitute investment advice. Developing the plugin locally requires Node.js version 22.19.0 or newer.
这是一个专为 DeepSeek Harness 开发的原生插件,基于 yahoo-finance2 为 DSH 智能体提供六类结构化的美股市场数据工具。相比于无插件时代理依赖网页搜索和命令行爬取零散数据,该插件能直接返回规整的美股信息,涵盖实时报价、历史价格走势、财务报表、分析师评级、最新新闻和机构持仓。
普通用户可直接在 DeepSeek Harness 中输入指令完成自动安装,也可通过 DSH CLI 手动添加该插件。安装后即可让智能体回答各类美股分析问题,比如查询苹果公司当前股价、季度财报、分析师目标价和近期相关新闻,适合个人投资者、金融研究者和需要美股数据做分析的用户使用。
该插件采用 MIT 许可证开源,支持缓存重复请求以提升响应速度、减少上游调用次数。目前仅支持美股市场,数据来自雅虎财经的非官方未公开API,存在限流和变更可能。数据仅供研究使用,不构成任何投资建议,本地开发需要 Node.js 22.19.0 及以上版本。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-us-stocks(Realyujie/dsh-us-stocks)
仓库:https://github.com/Realyujie/dsh-us-stocks
本站详情页:https://www.yhbd.top/plugins/realyujie-dsh-us-stocks/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 8 · 最近提交 2026-08-20 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- Only 8 stars - very few users, little community feedback星标只有 8,几乎没人在用,遇到问题缺少社区反馈
DSH walks through these 9 checksDSH 会逐条核对这 9 项
Compatibility兼容性
- DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
- External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
- Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册
Security安全性
- Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
- Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
- curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
- Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
- Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
- Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式
Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。
Or use CLI install (for developers)或使用命令行安装(适合开发者)
CLI Install命令行安装
dsh plugin --profile web add dsh-us-stocks
把 Realyujie/dsh-us-stocks 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-us-stocks
English | 中文
US stock market data tools for DeepSeek Harness, powered by yahoo-finance2.
Gives the agent six first-class tools for quotes, price history, financial statements, analyst consensus, news and ownership — instead of leaving it to improvise against HTML pages.
Before and after
One agent turn, same question, same model, same machine — the only variable is whether the plugin is installed. The task: price, three-month trend, recent quarterly financials, analyst rating and recent news for AAPL.
| Without this plugin | With this plugin | |
|---|---|---|
| Steps | 14 | 2 |
| Tool calls | 31 | 5 |
| Wall clock | 213.5s | 33.2s |
| What it called | 16 × web_search, 15 × bash |
one call to each tool the task needed |
With no market-data tool available, the agent falls back on web search and shell commands, fetching and parsing one page at a time. Most of the remaining 33 seconds is model inference, which no plugin controls; data retrieval itself is 2.6s.
Acceptance benchmark — AAPL
Acceptance benchmark — AAPL
✅ get_quote 2016ms 305.93 USD (+0.2195%), mcap 4464.80B
✅ get_history 446ms 62 bars 2026-05-18..2026-08-14
✅ get_financials 2181ms 4 income / 4 balance / 4 cash-flow periods
✅ get_analyst_view 2492ms buy from 41 analysts, target 322.2844
✅ get_news 632ms 8 headlines, latest "Google is using a $29 gadget to tighten its gri…"
✅ get_ownership 3135ms 66.48% institutional across 7709 filers, insiders net 35206 shares over 6m
tool calls 6
wall clock 3.14s (concurrent)
payload 26.2 KiB across 6 results
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
nocobase/nocobase
TencentCloudBase/CloudBase-AI-Toolkit
WYH66666666/DSH-Transparent-UI-Plugin
Nagi-ovo/dsh-visualize
SepineTam/mcp-for-stata
omdsh-dev/dsh-data-agent
morluto/jacobian
youdotcom-oss/agent-skills