通过 SEC EDGAR 将公司名称或股票代码解析为已验证的股票代号,再从 yahoo-finance2 获取实时行情,包括价格、市盈率、每股收益、市值、52周区间和股息率。
安装
# GitHub 源码(首次需按提示配置 allowBuilds 构建授权后重试)
dsh plugin --profile web add github:minyang-chen/dsh-stock-lookup
装任何插件都等于在你的机器上跑第三方代码,权限和你本人一样大——能读你的文件、用你的凭据、访问网络,工具审批管不到它。GitHub 来源的插件还会在安装时执行构建脚本——pnpm 默认拦截,所以安装可能停在 ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED 或 ERR_PNPM_IGNORED_BUILDS;dsh 会打印出需要添加的确切键名,把它加进该 profile 的 pnpm-workspace.yaml 的 allowBuilds 下,重跑一次即可装上。放行构建本身就是一次信任判断:请只安装可信来源,并尽量锁定 commit(github:owner/repo#sha)。
README
该插件的 README 只有英文版本。
A DeepSeek Harness plugin that gives the agent two tools for stock research:
stock_resolve— resolve a company name or partial ticker to a US stock symbol using the bundled SEC EDGAR company index (~10,000 companies). Returns ticker, CIK, official company name, and a direct SEC EDGAR filing link.stock_profile— fetch a live stock quote and company profile (price, change, P/E, market cap, sector, industry, description, and more) via Yahoo Finance.
No API keys required. No external services beyond Yahoo Finance.
Install
# From npm (after publish):
dsh plugin --profile web add dsh-stock-lookup
# From GitHub (no npm publish needed):
dsh plugin --profile web add github:minyang-chen/dsh-stock-lookup
# From a local clone:
dsh plugin --profile web add /path/to/dsh-stock-lookup
After installing, restart DSH:
dsh web
Update to latest version
# Pull latest commit from GitHub and rebuild:
dsh plugin --profile web update dsh-stock-lookup
# Or remove and re-add:
dsh plugin --profile web remove dsh-stock-lookup
dsh plugin --profile web add github:minyang-chen/dsh-stock-lookup
Restart DSH after updating.
Tools
stock_resolve
Resolve a company name or ticker to a stock symbol.
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | ✅ | Company name, partial name, or ticker. E.g. "Apple", "nvidia", "TSLA" |
limit |
number | Max results to return (1–10, default 5) |
What the agent says:
Found 1 match for "Apple":
• AAPL — Apple Inc. (CIK 320193)
SEC EDGAR: https://www.sec.gov/cgi-bin/browse-edgar?...
{
"status": "ok",
"data": [
{
"ticker": "AAPL",
"company": "Apple Inc.",
"cik": 320193,
"sec_url": "https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&CIK=320193&type=10-K..."
}
]
}
stock_profile
Get a live quote and company profile by ticker symbol.
| Parameter | Type | Required | Description |
|---|---|---|---|
ticker |
string | ✅ | Stock ticker. E.g. "AAPL", "NVDA", "BRK-B" |
What the agent says:
Apple (AAPL) — $310.34 on Nasdaq, up $0.99 (+0.32%) from the previous close of $309.35,
as of the 2026-08-24 close.
Volume: 34.4M shares
Market cap: ~$4.53T
52-week range: $224.69 – $344.57
Valuation: trailing P/E 35.5, forward P/E 32.5, EPS (TTM) $8.75
Sector: Technology — Consumer Electronics
Country: United States
{
"status": "ok",
"data": {
"symbol": "AAPL",
"name": "Apple Inc.",
"exchange": "NasdaqGS",
"currency": "USD",
"price": 310.34,
"change": 0.99,
"change_percent": 0.32,
"previous_close": 309.35,
"market_cap": 4529157832704,
"trailing_pe": 35.47,
"forward_pe": 32.54,
"eps_trailing_twelve_months": 8.75,
"fifty_two_week_high": 344.57,
"fifty_two_week_low": 224.69,
"sector": "Technology",
"industry": "Consumer Electronics",
"country": "United States",
"description": "Apple Inc. designs, manufactures, and markets smartphones..."
}
}
Usage examples
Just ask the agent naturally — it selects the right tool automatically.
Direct ticker lookup (agent skips stock_resolve, calls stock_profile directly):
What is Apple's current stock price?
Company name → symbol → profile (two-tool chain):
What sector is Nvidia in?
Agent calls stock_resolve("nvidia") → finds NVDA → calls stock_profile("NVDA").
Ambiguous name:
Look up Amazon stock
Get the SEC EDGAR filing link:
Give me the SEC EDGAR filing link for Microsoft
Agent calls stock_resolve("Microsoft") and surfaces the direct link to EDGAR filings.
Find multiple companies by name:
Find all companies with "apple" in the name
Returns up to 10 matches with ticker, CIK, and EDGAR link for each.
Typical agent workflow
User: "What is Nvidia's current stock price?"
Agent:
1. stock_resolve("nvidia") → finds NVDA
2. stock_profile("NVDA") → returns live price + profile
Configuration
| Option | Default | Description |
|---|---|---|
enabled |
true |
Register tools with the agent |
quoteTtlMs |
15000 |
Quote cache lifetime in milliseconds |
Data sources
- Symbol resolution: bundled SEC EDGAR company tickers — ~10,000 US-listed companies. The plugin automatically refreshes this data from SEC EDGAR if it is more than 7 days old when DSH starts. If the refresh fails (no network, SEC unavailable), the bundled copy is used as fallback.
- Live quotes & profiles: Yahoo Finance via yahoo-finance2
To force a manual refresh at any time:
npm run update-sec-data
git add data/company_tickers.json
git commit -m "chore: refresh SEC EDGAR company tickers"
License
MIT
链接
同类插件
Tencent/WeKnora#dsh-weknora★ 33047
把 WeKnora 知识库接入 dsh 的四个只读工具:列出知识库、混合检索原文片段、按顺序还原单篇文档,以及直接取用 WeKnora 自己带引用的 RAG 或 ReAct agent 回答(含可续聊的 session id)。
superdesigndev/treg★ 4972
给 Agent 的工具目录:按「要做的事」检索约 2,600 个外部接口(SEO 与 SERP、外链、社交、人物与公司信息补全、广告库、抓取),查看参数与单次调用价格后直接调用,凭据由服务端注入。附带技能,MCP 行在未设置 TREG_TOKEN 前保持禁用。
TencentCloudBase/CloudBase-AI-Toolkit#dsh-plugin★ 1136
把腾讯云 CloudBase 后端接入 DeepSeek Harness——在对话里搭好并部署全栈应用,查询结果渲染为表格卡片(分页、排序、导出 CSV),部署后可预览真实域名,并提供 CloudBase MCP 工具集(`mcp__cloudbase__*`),登录走 device-code 流程。
gitroomhq/postiz-agent#dsh-postiz★ 509
通过 MCP 将 DeepSeek Harness 连接到 Postiz:列出已连接的社交媒体渠道、获取各平台发帖规则,并向 X、LinkedIn、Instagram、Facebook、Threads、TikTok、YouTube、Reddit、Bluesky、Mastodon、Discord、Slack、Telegram 等平台排期、存草稿或发布帖子;附带 postiz 工作流技能。
EthanYoQ/Invoice-Downloader#dsh-invoice-downloader★ 502
面向 DeepSeek Harness 的本地 IMAP 发票下载、OCR 识别、归档与 Excel 报销汇总。
anysearch-team/anysearch-dsh★ 457
基于 AnySearch 的实时网页与垂直搜索插件,为 DeepSeek Harness 提供搜索工具。
社区评论
评论公开保存在 GitHub Discussions。加载评论会连接 GitHub 和 Giscus;发表内容需要 GitHub 账号。