dsh-ths-holdings
キュレーションリスト掲載メンテナンス: 活発pm25000/dsh-ths-holdings
同花順の投資台帳から自動同期する保有損益フローティングカード。当日損益・上海総合指数・日中チャート表示
$ dsh plugin add dsh-ths-holdings7
スター
0
フォーク
TypeScript
言語
MIT
ライセンス
2026-08-15
作成日
2026-10-20
最終プッシュ
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
by pc2005-cloud
DSH Web デスクトップペット:51 透明 webm アニメ、画面漫游、クリック/ドラッグ。プロンプト+AI 動画で自作も可
dsh-tavern
by flizzywine
SillyTavern 風文字ゲーム Agent。候補生成、角色卡編集、剧本モード
dsh-dafeiyu
by qcytsn
DeepSeek Harness 向け Windows 常時最前面の BigFish デスクトップコンパニオン。リアルな Agent ステータス表示
dsh-meme
by yyh-001
チャットミームスタンプ:QQ/WeChat 風ピッカー、自動学習、カスタムパック
