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

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
- Open DSH Desktop and select Plugins in the sidebar.
- Select Add plugin and enter
dsh-ths-holdingsin the package field. - Confirm that you trust the plugin as prompted, then select Install.
- 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:
- Open DSH Desktop or Web and click ⚙ on the card.
- Click 🖥 自动获取 Cookie(推荐) — a system browser window opens (Edge / Chrome — the first installed one wins).
- Sign in to the Tonghuashun investment ledger in that window (QR code / account).
- When the sign-in succeeds the window closes itself, the Cookie is saved automatically, and the card refreshes with your portfolio.
- 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):
- Open https://tzzb.10jqka.com.cn and log in.
- 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. - Keep developer tools open, select Network, then refresh the ledger page to record requests.
- Select a page or ledger API request to
tzzb.10jqka.com.cn. Under Headers → Request Headers, copy the complete Cookie value. Copy only thename=value; name2=value2portion, without theCookie:prefix; do not copy a response'sSet-Cookieheader. - Return to DSH Desktop or Web — click ⚙, paste the cookie into STOCK_PNL_COOKIE → save.
- The card validates the saved cookie immediately — it shows ✓ valid or ✗ invalid (with the reason/hint).
更多「纯属好玩」插件
dsh-pet
作者 pc2005-cloud
DSH 桌面宠物:一行命令装好即用的透明动画小桌宠,支持多开、大小位置随心配置;还内置 DIY 素材链,能用 AI 视频自造专属宠物
dsh-tavern
作者 flizzywine
基于DSH的Agent酒馆。类酒馆文字游戏Agent。兼容SillyTavern生态,人物卡直接导入就能玩。更快、更稳、更鲜活。所有模型都能用。手机也能玩。
dsh-dafeiyu
作者 qcytsn
DeepSeek Harness 的桌面原生大飞鱼陪伴插件,实时展示智能体状态,Windows 上置顶显示。
dsh-meme
作者 yyh-001
DeepSeek Harness 表情包插件:输入框一键发图、文字 token 斗图、情绪主动发图、AI 自动学图,图库市场一键安装。 · Meme/sticker plugin for DeepSeek Harness: one-click picker in the composer, text-token memes, mood-driven sending, AI learns your images, marketplace packs.
