DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-ths-holdings

Ths Holdings

同花顺投资账本持仓插件:提供盈亏和指数悬浮卡片,以及用于聊天查询和定时报告的持仓报告 Skill。两个组件可独立启用,共用登录状态和账本选择。

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-ths-holdings@0.3.2
README兼容性版本
dsh-ths-holdings card

兼容性与来源证明

Ths Holdings 以 dsh-ths-holdings 发布,当前版本为 0.3.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/11/4

版本

0.3.2stable
2026/10/20
0.3.1stable
2026/10/18
0.3.0stable
2026/10/18
查看其余 7 个版本收起版本
0.2.2stable
2026/10/8
0.2.1stable
2026/10/6
0.2.0stable
2026/9/23
0.1.8stable
2026/9/23
0.1.7stable
2026/8/22
0.1.6stable
2026/8/22
0.1.4stable
2026/8/21

相关插件

正在加载相关插件…

最新版
0.3.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
417.7 kB
文件数
68
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 4
周下载
411
安全扫描
✓ v0.3.2 扫描通过
最近提交
2026/10/18
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 productivity-workflow 分类下经过校验的插件。

Acp App@deepseek-ai/dsh-acp-appdsh ACP 配置文件包:基于 dsh-base 的仅限自动化的 JSON-RPC stdio 和进程生命周期管理Experimental Schedule Bundle@deepseek-ai/dsh-experimental-schedule-bundle为 Web 组合添加 Schedule、其任务页面和时间上下文的可选捆绑包Client Ui Task Board@linxin666/dsh-client-ui-task-board面向 DSH Web GUI 的主机权威任务面板,支持实际会话执行、主机 cron 调度以及可选的跨平台空闲睡眠保护;以挂载方式提供,无需修改 DSH 源代码。Web All@linxin666/dsh-web-allDSH Web UI 全家桶聚合插件:一键安装全部功能插件(task-board / pet / web-ui-settings / skin-center / community-plugins / compat shim)。compat 桥接层已并入本包(src/client),无需独立 compat npm 包。

README

dsh-ths-holdings

English | 中文

A Tonghuashun holdings plugin providing a floating position P&L card and a portfolio report Skill for DeepSeek Harness (DSH) Desktop and Web. It automatically syncs your real portfolio data from the Tonghuashun investment-ledger (同花顺投资账本) — no manual stock picking. Displays 今日盈亏 (today's P&L), 上证指数 (Shanghai Composite Index), and an intraday mini chart, all in the A-share red-up/green-down convention.

Unlike watchlist tools, this plugin reads your actual positions and shows your real profit & loss — both as a percentage and as a yuan amount — updating every 20 seconds.

Screenshots

dsh-ths-holdings card

Version compatibility

Plugin 0.3.2 targets the DSH 0.2 series and has been tested with Desktop 0.2.0-rc.2, without a compatibility exemption. For DSH 0.1, keep plugin 0.2.0; this migration does not support the older host.

0.3.2 lets you enable the card and portfolio report Skill independently, sharing sign-in and portfolio selection. All card settings remain available; with only the Skill enabled, configure sign-in under Settings → Tonghuashun holdings. Fully quit and restart DSH after upgrading.

Installation

Desktop

  1. Open DSH Desktop and select Plugins in the sidebar.
  2. Select Add plugin and enter dsh-ths-holdings in the package field.
  3. Confirm that you trust the plugin as prompted, then select Install.
  4. When installation finishes, select Enable now. The floating card appears at the bottom-right corner. If a restart is requested, fully quit Desktop and reopen it.

Desktop does not currently update plugins automatically. To upgrade an installed version, uninstall it from the Plugins page, then install the new version. See the official DSH installation guide.

Web

Run in a terminal:

dsh plugin --profile web add dsh-ths-holdings

After installation, restart dsh web and refresh the DSH page. The floating card appears at the bottom-right corner.

Desktop and Web manage their plugins separately; use the installation method for the application you run.

Usage

The plugin details page provides two independent component switches:

  • Portfolio report Skill: holdings queries in ordinary chat and scheduled reports.
  • Tonghuashun holdings plugin (card component): the floating card with P&L and index data.

Both share the saved sign-in and portfolio selection. Enable either or both. All existing ⚙ card settings remain available. With only the Skill enabled, sign in and choose a portfolio under Settings → Tonghuashun holdings → Sign-in and portfolio.

Recommended — auto-acquire:

  1. Open DSH Desktop or Web and click ⚙ on the card.
  2. Click 🖥 自动获取 Cookie(推荐) — a system browser window opens (Edge / Chrome — the first installed one wins).
  3. Sign in to the Tonghuashun investment ledger in that window (QR code / account).
  4. When the sign-in succeeds the window closes itself, the Cookie is saved automatically, and the card refreshes with your portfolio.
  5. The plugin auto-discovers your portfolio — if you have several, pick one from the dropdown. Done.

Click 立即更新数据 in the expanded ⚙ settings to fetch P&L and the index immediately using the saved sign-in and selected portfolio. The button shows a loading state during the request; failures retain previous successful values and their original update time.

Open Settings → Tonghuashun holdings in DSH to change the refresh interval (default: 20000 ms, or 20 seconds) and card visibility. Click Save to apply changes immediately and retain them after restart. Hiding the card stops its automatic refresh without disabling the Skill. The Tonghuashun holdings plugin card component switch controls whether the card feature is loaded; chat queries and scheduled reports require the Portfolio report Skill component to be enabled.

Manual (backup):

  1. Open https://tzzb.10jqka.com.cn and log in.
  2. Click the browser's top-right menu → More tools → Developer tools (… in Edge, ⋮ in Chrome). F12 may have no effect on this page; open the tools through the browser menu.
  3. Keep developer tools open, select Network, then refresh the ledger page to record requests.
  4. Select a page or ledger API request to tzzb.10jqka.com.cn. Under Headers → Request Headers, copy the complete Cookie value. Copy only the name=value; name2=value2 portion, without the Cookie: prefix; do not copy a response's Set-Cookie header.
  5. Return to DSH Desktop or Web — click ⚙, paste the cookie into STOCK_PNL_COOKIE → save.
  6. The card validates the saved cookie immediately — it shows ✓ valid or ✗ invalid (with the reason/hint).

If the page reports that developer tools are unsupported, first check whether Network has already recorded a ledger request with a Cookie header. If no usable Cookie is available, use auto-acquire above. Keep developer tools open while inspecting cookies manually.

The session cookie expires eventually — when it does, the card shows a Token 已过期 banner; re-open ⚙ and click auto-acquire (or repeat manual steps 1–5) with a fresh cookie.

💡 After completing a new trade, re-upload your data from the investment-ledger app to the web version so your holdings stay consistent between the two.

Data upload tutorial

Query holdings in chat

Installing the plugin and enabling the Portfolio report Skill component automatically makes the bundled ths-portfolio-report Skill available in ordinary chat and scheduled tasks. No separate Skill installation or MCP server is needed. Sign-in and portfolio selection use either the card settings or Settings → Tonghuashun holdings → Sign-in and portfolio; you do not need to find or enter a portfolio ID.

After signing in, simply say in DSH chat:

Show my holdings in Tonghuashun Investment Ledger.

The assistant uses the selected portfolio. If several are available and none is selected, choose by name when asked. You can also say “Show holdings from my ‘Long-term investments’ portfolio in Tonghuashun Investment Ledger.”

Reports default to an asset overview, the full holdings table and the largest positions. They include security names and codes, quantities, cost and current prices, market values, portfolio weights, holding P&L and daily P&L. Query time and ledger upload time are shown separately; missing data is identified rather than treated as zero.

Schedule reports

For example, say:

Every weekday at 4:30 p.m. Beijing time, check my holdings in Tonghuashun Investment Ledger and generate a holdings and P&L report. Keep this task linked to the currently selected portfolio.

You can also include relevant news:

Every weekday at 9:00 a.m., check my holdings in Tonghuashun Investment Ledger and tell me about important news related to those holdings.

Have the assistant confirm the portfolio name and next run time. Scheduled reports require a running DSH host with Schedule enabled. Weekday rules do not automatically exclude exchange holidays.

Features

  • 📊 Real-time position P&L — polls every 20 s (configurable) from your actual portfolio
  • ¥ / % toggle — show today's P&L as a yuan amount, a percentage, or both
  • 📈 Intraday chart — mini polyline with a zero axis, red-up/green-down
  • 🇨🇳 Shanghai Composite Index — displayed alongside your P&L
  • 🔄 Auto-discovery — fund_key is discovered from the portfolio list; multi-account selection via dropdown
  • 🖥 Auto-acquire Cookie — one click pops the Edge sign-in window; the cookie is saved automatically, no F12 needed
  • ✓ Validate on save — the stored cookie is checked against the ledger right after paste or auto-acquire
  • ↕ Draggable — drag the title bar vertically along the right edge (position persists in localStorage)
  • ⚙ In-place settings — paste Cookie and select portfolio from the card itself
  • 🔒 Credential-safe — the Cookie never leaves the host process

FAQ / Troubleshooting

SymptomCause & fix
Card shows 请配置 CookieSTOCK_PNL_COOKIE is empty — click auto-acquire in the ⚙ panel, or paste manually.
Card shows Token 已过期Re-acquire the cookie or copy the Cookie request header using the manual steps above.
F12 has no effectClick the browser's top-right menu → More tools → Developer tools, then follow the manual steps.
Login page says developer tools are unsupportedAuto-acquire does not require developer tools. For manual acquisition, check already recorded ledger requests in Network; if no usable Cookie is available, use auto-acquire.
No portfolio in the dropdownThe account list needs a valid Cookie first; save the Cookie, then click ↻ to refresh.
Multiple portfoliosSelect the one you want from the dropdown — the choice is saved as STOCK_PNL_FUND_KEY.
Cookie pasted with line breaksThe plugin strips whitespace on save, so wrapped lines are fine.
“稍后重试” or “数据暂时无法获取”Wait and retry. The card may retain previous successful values; check the displayed update time.
The assistant cannot query holdingsCheck that the Portfolio report Skill component is enabled and sign-in is complete. Fully restart DSH, then try again.
The report fails while the card still has valuesThe card may be showing an earlier snapshot. Reports treat the current query as failed and do not reuse old results.

Known Limitations

  • Auto-acquire uses a system browser — no Playwright installation is needed. Edge or Chrome must be installed and the host must have a visible desktop session; otherwise use manual paste.
  • Reports currently support ordinary CNY portfolios holding Shanghai/Shenzhen stocks and ETFs. Margin accounts, short positions, B shares and other markets are outside the supported scope.
  • Enter login information only in plugin settings, not in chat or scheduled prompts.

License

MIT