DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-ths-holdings

Ths Holdings

同花顺投资账本持仓插件:提供盈亏与指数悬浮卡片、持仓报告 Skill,支持聊天查询和定时报告;两个组件可独立启停,共用登录和账本选择。 P&L and index overlay card plus a portfolio report Skill for chat queries and scheduled reports. Enable each component independently with shared sign-in and portfolio selection.

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-ths-holdings@0.3.2
READMECompatibilityVersions
dsh-ths-holdings card

Compatibility and provenance

Ths Holdings is published as dsh-ths-holdings and currently resolves to version 0.3.2. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
11/4/2026

Versions

0.3.2stable
10/20/2026
0.3.1stable
10/18/2026
0.3.0stable
10/18/2026
Show 7 more versionsCollapse versions
0.2.2stable
10/8/2026
0.2.1stable
10/6/2026
0.2.0stable
9/23/2026
0.1.8stable
9/23/2026
0.1.7stable
8/22/2026
0.1.6stable
8/22/2026
0.1.4stable
8/21/2026

Related plugins

Loading related plugins…

Latest
0.3.2
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
417.7 kB
Files
68
Surface
web
License
MIT
Source
npm
GitHub
★ 4
Weekly downloads
411
Security scan
✓ v0.3.2 scan passed
Last push
10/18/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in productivity-workflow.

Acp App@deepseek-ai/dsh-acp-appThe dsh ACP profile bundle: automation-only JSON-RPC stdio and process lifecycle over dsh-baseExperimental Schedule Bundle@deepseek-ai/dsh-experimental-schedule-bundleOptional bundle that adds Schedule, its task page, and time context to the Web compositionClient Ui Task Board@linxin666/dsh-client-ui-task-boardHost-authoritative task board for the DSH Web GUI with real session execution, Host cron scheduling, and optional cross-platform idle-sleep protection; mounted without DSH source changes.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