DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Agent Quant Cn — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
A

dsh-agent-quant-cn

Agent Quant Cn

Domestic market quantitative tool interface: exposes the Windows-side CTP JSON CLI (ctp_status / ctp_account) as directly callable tools within the session. Connects only to simulated accounts, does not handle real money; credentials are retrieved from vault at runtime and are not persisted or inclu

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:jonah791/dsh-agent-quant-cn#da34c00592d4babe7e3ca22077b57946800e17a7
READMECompatibilityVersions

Description

Domestic market quantitative tool interface: exposes the Windows-side CTP JSON CLI (ctp_status / ctp_account) as directly callable tools within the session. Connects only to simulated accounts, does not handle real money; credentials are retrieved from vault at runtime and are not persisted or included in configuration.

Compatibility and provenance

Agent Quant Cn is published as dsh-agent-quant-cn and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
github
Registry updated
10/15/2026

Versions

0.1.0stable
10/15/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
any
License
MIT
Source
github
GitHub
★ 0
Weekly downloads
0
Last push
10/15/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in integrations-communication.

Im@xmanrui/dsh-im把微信、飞书、企微、钉钉、QQ、Telegram、WhatsApp、Slack、Discord、Matrix接入DSH。 Connect Telegram, WhatsApp, Slack, Discord, Matrix, WeChat, Feishu, WeCom, DingTalk, and QQ to DSH.Free Searchdsh-free-searchFree web search for DeepSeek Harness: 24 engines (Bing/DuckDuckGo/AnySearch/SearXNG/Exa/Tavily/Keenable/Firecrawl/Parallel keyless; Zhihu global/site via MCP and Perplexity/SerpBase/DeepSeek/You.com/Baidu/Kimi/Aliyun/Doubao with key; OpenAI/Gemini/Claude Dafeiyudsh-dafeiyuA desktop-native BigFish companion driven by DeepSeek Harness session events.Wechat Plugindsh-wechat-pluginWeChat channel for DeepSeek Harness: lock the PC, walk away, and drive the agent from your phone. No OpenClaw and no public IP required.

README

dsh-agent-quant-cn

国内市场量化系统的工具面:把 CTP 模拟盘的操作暴露成会话内可直接调用的 DSH 工具。

它自己不实现任何策略或连接逻辑——那些在 projects/self/agent-quant/(Python 数值层 + JSON CLI)。 本插件只做「工具面 → 取凭据 → CLI → Python」这一层薄转发。

能力(工具)

工具作用底层
quant_ctp_statusCTP 模拟盘体检:交易前置登录 + 结算确认 + 资金与持仓ctp_cli.py ctp_status
quant_ctp_account资金与持仓明细(不做连接体检)ctp_cli.py ctp_account

故意不提供 ctp_quote(行情):mdapi 在该 CLI 内会段错误(0xC0000005,见任务板 t-d6ac0958)。 状态回包里如实披露 market_data.status = KNOWN_BLOCKER,不把它包装成一个看起来能用的工具。 行情数据请走回测侧(akshare)。

配置

键默认说明
enabledtrue只认显式 false——未配置视为启用
ctpPythonE:\alice\.dsh\venvs\ctp-win\Scripts\python.exe必须是 Windows 侧 venv
ctpCliPathE:\alice\projects\self\agent-quant\scripts\ctp_cli.pyJSON CLI
ctpUser20661openctp 公开测试账号(非密)
ctpBroker9999openctp TTS 柜台
vaultScriptE:\alice\projects\self\alice-identity\scripts\vault.ps1取值脚本(DPAPI)
vaultSiteopenctp-7x24vault 条目名
timeoutMs60000单次调用超时

⚠ 路径是锚点不是真源(AGENTS.md §5.16):换机、换 venv 位置时改配置,不要改代码。

运行环境

  • CTP 必须跑 Windows venv(ctp-win:Python 3.12 + openctp-ctp 6.7.11,已 openctp-channels switch tts)。 CTP 预编译库在本机 WSL 上 import 即崩,且 openctp 用的是 TTS 柜台——直接用官方 CTP 库连会报 4097。
  • 凭据零落盘:口令只在「vault 取 → 注入子进程 env → 用完即弃」这条线上存在。 不进配置、不进日志、不进工具返回;错误消息里只带 stderr,绝不带 stdout(stdout 是明文)。 取不到时响亮失败(空 ≠ 拿到)——空口令冒充成功会让下游以看不出原因的登录失败告终。

生效判据

挂载后在会话里直调 quant_ctp_status,应返回真实读数: ok=true / loggedIn=true / settled=true,且 accounts 含非空资金字段。

症状先看哪里
vault 退出码 2vault 文件不存在
vault 退出码 3DPAPI 解密失败(换用户/换机器即如此)
vault 返回空值条目存在但没有 password 字段
无法启动解释器ctpPython 路径腐化
CLI 退出码 6凭据未注入到 CLI(env 变量名对不上)
login 3柜台拒绝——用户名或口令不对

回退

改 E:\alice\.dsh\profiles\web\cordis.patch.yml:把该插件行的 disabled 置 true(配置改动约 2 秒热重载,无需重启)。

边界(不可协商)

  • 只连模拟盘,不碰真钱。真实下单必须主人逐次授权,且不走本插件。
  • 不做策略、不做回测、不下单——这些能力在 Python 层,本插件不复制它们。