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.
