looput/dsh-finance-lab
DSH Finance 是一个面向 DeepSeek Harness 的金融插件:它把 A 股、港股、美股、基金、宏观数据和财经新闻接入模型,同时提供一个可停靠的本地金融面板。行情通过公开 HTTP 接口直连,持仓和自选股保存在本地 JSON 中,适合个人研究、组合复盘和多智能体协作。
catalog descriptioncatalog 简介 / catalog description:DeepSeek Harness finance plugin: direct market HTTP APIs, portfolio settings, model tools
Project Overview项目介绍
looput/dsh-finance-lab is a DSH-native finance plugin that wires A-share, Hong Kong, US, mutual fund, macro, and financial-news data into DeepSeek Harness, together with a local dockable finance panel (default 480px, draggable 360–820px, opened as an overlay drawer). It registers through cordis.patch.yml and uses a local WeStock CLI as the preferred quote path with batching, parallel calls, caching, and circuit breaking, while Miaoxiang HTTP and Yingmi CLI are bridged as external MCP data sources with hot-reloadable tokens. The "接口" tab exposes provider health, cache hit-rate, per-source latency, and the breaker list so users can audit data quality from the panel itself.
Typical workflow: a user opens the 12-tab panel (行情/市场/持仓/基金/K线/宏观/快讯/资料/深度/发现/数据源/技能), clicks a holding or watchlist symbol to trigger an AI interpretation that is injected into the current Harness session, and the model then calls tools such as get_realtime_quote, get_consensus, get_money_flow, get_north_holding, and collect_research to build a full picture. The plugin ships playbook skills for financial analysis, portfolio, strategy, risk control, and a research-team orchestrator that fans tasks to DSH subagents in parallel, while simulate_rebalance runs a pure-function what-if rebalance against the local JSON holdings without writing back or placing orders. A "对话 ↔ 面板" two-way channel uses an SSE event bus plus a 60-second polling fallback so model changes to holdings, watchlist, interpretation cache, data-source policy, and skill toggles reach the panel instantly.
Dependencies and limits: the plugin only edits local JSON holdings and never places real trades; research, filings, and notes are persisted as Markdown inside the workspace vault (year/id-slug.md) with live directory watching, so edits made in an external editor or by other file tools are re-ingested into the research index automatically. WeStock's generic westock_call exposes only a read-only whitelist that rejects update/upgrade/config/login verbs and shell metacharacters, while remote-skill scope controls which Yingmi SKILL.md packages are visible. The project is MIT-licensed, has only 2 stars on GitHub, and recommends running npm run test:westock on first install to validate all 55 WeStock capabilities and surface any failing providers before production use.
looput/dsh-finance-lab 是一个面向 DeepSeek Harness 的原生金融插件,把 A 股、港股、美股、基金、宏观数据和财经新闻接入模型,并附带一个本地可停靠的金融面板(默认以浮层抽屉打开,宽 360–820px)。插件通过 cordis.patch.yml 完成 Harness 注册,行情优先调用本地 WeStock CLI(批量取数、并行调用、缓存、熔断),同时集成妙想 HTTP 与盈米 CLI 作为外部 MCP 数据源,并在面板中提供数据源、缓存命中率、平均耗时、熔断列表等接口健康状态。安装时需确保 westock 二进制可用(npm run westock:install),首次打开面板会自动写入 profile 或回退 localStorage。
典型用法是:在面板「自选」或「持仓」点击标的即触发 AI 解读,模型可调用 get_realtime_quote、get_consensus、get_money_flow 等十余类工具;研究流程支持 screen_stocks 初筛→行情/基本面→资金流→collect_research 沉淀研报→add_research_note 记录观点。内置财务分析、组合、策略、风控与研究团队 playbook,可交给 DSH subagent 并行执行,simulate_rebalance 提供纯模拟再平衡推演,import_holdings 可通过截图识别批量写入本地持仓。整套闭环面向个人投资者、组合复盘者与多智能体协作研究。
依赖与限制方面,插件只修改本地 JSON 持仓文件,不执行真实交易;研报、财报、资讯以 Markdown 落盘到工作区 <vault>/<年>/<id>-<slug>.md,本地目录被实时监听,编辑器改动会自动回灌索引。WeStock 通用调用 westock_call 设有写操作与 shell 元字符白名单,拒绝 update/upgrade/config/login 等指令;盈米 skill 与面板事件总线(SSE + 60 秒轮询兜底)支持即时推送。项目以 MIT 协议开源,stars 仅 2,建议首次运行先执行 npm run test:westock 验证 55 项能力可用性。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-finance-lab(looput/dsh-finance-lab)
仓库:https://github.com/looput/dsh-finance-lab
本站详情页:https://www.yhbd.top/plugins/looput-dsh-finance-lab/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证未声明 · ⭐ 2 · 最近提交 2026-10-01 · 主语言 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 更稳。
- No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
- Only 2 stars - very few users, little community feedback星标只有 2,几乎没人在用,遇到问题缺少社区反馈
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 github:looput/dsh-finance-lab
把 looput/dsh-finance-lab 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
DSH Finance
让 DeepSeek Harness 从“查一条行情”走向“看懂市场、管理组合、组织研究”。
DSH Finance 是一个面向 DeepSeek Harness 的金融插件:它把 A 股、港股、美股、基金、宏观数据和财经新闻接入模型,同时提供一个可停靠的本地金融面板。行情通过公开 HTTP 接口直连,持仓和自选股保存在本地 JSON 中,适合个人研究、组合复盘和多智能体协作。
你可以用它做什么
- 跨市场看行情:A 股、港股、美股和公募基金的报价、K 线、列表与代码解析。
- 快:行情优先走本地 WeStock CLI——批量取(一次调用拿多只标的)、并行调用、结果缓存与陈旧复用、失败即熔断;HTTP 源保留串行间隔做回落。面板首屏从「逐只串行 + 死等超时」降到秒级。
- 从数据到判断:本地计算 MA、MACD、RSI、KDJ;查询财务指标、市场指数和行业板块。
- 跟踪市场叙事:读取中国 CPI/PPI/PMI/GDP/M2、市场电报、个股新闻,并通过 DuckDuckGo 免费搜索网页。
- 读券商研报:经 WeStock CLI(腾讯自选股,免鉴权)拉取个股研报列表与正文(机构、评级、时间)。
- 沉淀投研过程:研报、财报、资讯与个人观点统一进「投研资料库」,必带来源与时间、可关联标的与观点,支持持续收集、追加批注与归档。
- 资料与本地文件双向联动:正文是工作区里的 Markdown(
<vault>/<年>/<id>-<slug>.md),目录被实时监听——在编辑器/文件工具里新建或改动文件会自动回灌索引,面板里改正文也会写回同一个文件。 - 对话 ↔ 面板打通:对话里收集/产出的资料自动落库并实时出现在「资料」页(顶部回执 + 标「对话」来源);资料详情的「问 Agent」「让 Agent 整理」会把上下文拼成提问直接发进当前会话,Agent 再用
add_research_note/update_research回写资料库,形成「对话收集 → 资料沉淀 → 面板维护 → 继续追问」闭环。 - 管理自己的组合:维护持仓和自选股,计算市值、盈亏、资产类型/市场分布,以及 top1、top3 和 HHI 集中度。
- 用研究团队拆解问题:内置行情、基本面、宏观、基金、消息和风险管理 playbook,可交给 DSH subagent 并行研究后汇总。
核心体验
一个面板,十二个视角
从侧边栏打开 📈 金融面板,可在以下标签页之间切换:
| 标签页 | 内容 |
|---|---|
| 面板宽度 | 默认 480px,左边缘可拖动(360–820),自动记忆 |
| 行情 | 指数、自选股走势、迷你 K 线和实时刷新 |
| 市场 | 领涨/领跌行业板块,快速定位当日风险 |
| 持仓 | 持仓盈亏、组合市值、股票/基金配置和集中度 |
| 基金 | 开放式基金排行、净值和加入自选 |
| K线 | 本地历史库日 K 线,财报/分红/自定义事件标记 |
| 宏观 | CPI、PPI、PMI、GDP、货币供应量及趋势 |
| 快讯 | 全球财经电报,以及按持仓/自选筛选的个股新闻 |
| 资料 | 投研资料库:按时间/标的分组浏览,按类型/状态/标的/关键词检索;详情为「元数据 + 正文」双栏,可编辑正文并写回本地文件、追加带时间戳的观点、归档;顶部显示本地目录与监听状态,可一键同步 |
| 深度 | 个股深度档案:一致预期/评分/ESG/机构评级/资金流向/融资融券/龙虎榜/股东/分红回购/风险事件/公告/产业链,一次并发取回 |
| 发现 | 市场情绪与注意力:涨跌分布、热搜股票/热门板块、机构龙虎榜(WeStock) |
| 数据源 | 按 capability 选择 provider,选择顺序即调用优先级 |
| 技能 | 本地 playbook 与盈米金融场景 skill 的启停管理 |
| 接口 | 数据源健康状态与当前 provider、数据源性能(缓存命中率/平均耗时/各源成败与耗时/熔断列表)、MCP 外部源开关 |
| 顶部铃铛 | 观点触发式提醒:行情异动(默认 ±5%)与「观点需复核」(默认 ±8%),点击直达 AI 解读 |
面板开关(panelOpen / panelDocked)是 volatile 配置:优先写回 profile;若当前 profile 不可写(本版本 configForms.set 会返回不可写),客户端自动退回 localStorage(dsh-finance:panelPrefs),并在面板顶部提示,保证面板打得开、刷新后状态保留。默认以浮层抽屉打开(dev_web.sh 生成 panelDocked: false;停靠页需要宿主 dock 容器,未选择工作区时可能不渲染),可在面板内一键切换为停靠。
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