dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DSH sidebar dashboard for Tonghuashun simulated account and local backtest replay
在 DeepSeek Harness(DSH)左侧快捷栏增加「模拟持仓」和「回测回放」两个入口,展示:
DSH 左侧栏入口 + 主面板(lib/client.js)
|
| /ths-dashboard/api (同源代理)
v
宿主插件(lib/index.js)
|
| 启动并转发到 127.0.0.1:8766
v
ths_sim.dashboard_server (Python 后端,源码已随包放在 python/ths_sim)
|
+-- 同花顺模拟盘:账户 / 持仓 / 五档盘口
+-- 新浪:分钟/日线 K 线,资金流
+-- 腾讯:盘口与名称兜底
宿主插件会自动启动包内自带的 Python 服务;DSH 关闭时停止它。若服务没有启动,面板错误区会提示,也可以手动运行:
cd <package-root>
$env:PYTHONPATH = "$PWD\python"
python -m ths_sim.dashboard_server --port 8766
从 npm 安装:
dsh plugin --profile desktop add dsh-ths-dashboard
本地开发时用 link: 安装当前目录:
dsh plugin --profile desktop add "link:<this-directory>"
新增客户端 bundle 后需要重启 DSH 桌面客户端,左侧栏才会出现「模拟持仓」。
.ths_sim/dashboard.json 的 backtest_root 配置,或环境变量 THS_BACKTEST_ROOT:{"backtest_root": "C:\\path\\to\\local_backtest\\out"}
lib/index.js 宿主:启动 Python 服务 + 同源 API 代理
lib/client.js 浏览器:模拟持仓/回测回放入口、持仓表、K线/MACD、资金流、五档盘口
cordis.patch.yml DSH bundle patch
package.json DSH 插件描述