dsh-ths-holdings
DSH 持仓盈亏悬浮卡片(同花顺投资账本)— 自动同步真实持仓数据,显示今日盈亏、上证指数和当日走势图,无需手动添加股票。Real portfolio holdings overlay for the DSH web GUI — automatically syncs your positions from the Tonghuashun investment-ledger API.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:PM25000/dsh-ths-holdings说明文档
阅读完整 README ↗dsh-ths-holdings
English | 中文
DeepSeek Harness(DSH)网页 GUI 上的持仓盈亏悬浮卡片。自动从同花顺投资账本同步你的真实持仓数据——无需手动添加股票。实时显示今日盈亏、上证指数和当日分时走势图,遵循 A 股红涨绿跌惯例。
与自选股盯盘工具不同,这个插件读取的是你的真实持仓,显示真实盈亏——百分比和金额都支持——每 20 秒自动刷新。
截图

安装
dsh plugin --profile web add dsh-ths-holdings
安装实际上是在 web profile 里执行 pnpm add:包的 dsh.bundle.patch 会自动并入 profile 层。然后重启 dsh web,右下角出现悬浮卡片。
不用 dsh plugin 手动安装:编辑 $DSH_HOME/profiles/web/package.json:
{
"dependencies": {
"dsh-ths-holdings": "^0.1.0"
},
"dsh": {
"profile": {
"bundles": [
// ...原有 bundles,
"dsh-ths-holdings"
]
}
}
}
然后 cd $DSH_HOME/profiles/web && pnpm install 并重启 dsh web。插件行由包的 cordis.patch.yml 提供,不需要手写。
使用
- 打开 https://tzzb.10jqka.com.cn 并登录。
- 按 F12 → 控制台,运行:
copy(document.cookie) - Cookie 已复制到剪贴板。
- 打开 DSH 网页 GUI,点击卡片上的 ⚙。
- 把 Cookie 粘贴进 STOCK_PNL_COOKIE → 保存。
- 插件自动发现你的组合——如有多个,从下拉框选一个即可。