A 股券商自动交易
A 股券商自动交易:提供A股券商客户端自动化交易能力,支持雪球、芸享等多券商登录与交易操作封装,涵盖账户余额查询、持仓管理、委托下单及组合跟随等核心功能。 含 25 条反模式约束。
晶体简介
Constraints
Evidence Quality
Medium confidence — review before critical use
46 条不可违反的约束
WHENWhen implementing web trader authentication
ACTIONCall keepalive() immediately after successful login to start the heartbeat thread
CONSEQUENCEWithout keepalive(), the web session token expires after server-side timeout, causing all subsequent API calls to fail with NotLoginError
WHENWhen implementing broker-specific login for BaseLoginClientTrader
ACTIONImplement login() as an abstract method that handles broker-specific GUI automation or authentication
CONSEQUENCEMissing implementation causes NotImplementedError when prepare() is called, blocking all trading operations
WHENWhen implementing MiniQMT trader connection
ACTIONPass DefaultXtQuantTraderCallback instance to XtQuantTrader constructor to receive order/trade callbacks
CONSEQUENCEWithout callback registration, order confirmations and fills are silently discarded, making it impossible to track order execution status
常见问题
讨论 (0)
暂无讨论,成为第一个发言的人吧!
更新历史
v0.1.0: 首次发布到 Doramagic.ai。基于 zvtvz/zvt 的自动化 batch-v1 元数据 + 自动生成 FAQ。