dsh-ths-holdings
In a curated listMaintenance: Activepm25000/dsh-ths-holdings
Floating card showing your real position P&L (今日盈亏), Shanghai Composite Index, and intraday chart, auto-synced from the Tonghuashun investment-ledger — no manual watchlist setup.
$ dsh plugin add dsh-ths-holdingsInstall
dsh has no central install command — add this plugin’s entry (documented in its README) to your profile or patch config, then restart.
How installs work7
stars
0
forks
TypeScript
Language
MIT
License
2026-08-15
Created
2026-10-20
Last push
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).
More in Just for Fun
dsh-pet
by pc2005-cloud
DSH Web 界面桌面宠物:51 个透明 webm 动画随机链播、屏幕漫游、点击/拖拽;附提示词配方+AI 视频素材生成链可自造宠物
dsh-tavern
by flizzywine
SillyTavern 类文字游戏 Agent:候选项生成、对话式人物卡编辑、剧本模板。
dsh-dafeiyu
by qcytsn
Desktop-native BigFish companion for DeepSeek Harness — real Agent status, always on top on Windows.
dsh-meme
by yyh-001
表情包插件:纯文本斗图、情绪主动发图、像 QQ/微信 一样发图、AI 自动学图。
