This website requires JavaScript.
Explore
Help
Register
Sign In
sanguo
/
sanguo_vnpy_v2
Watch
3
Star
0
Fork
0
You've already forked sanguo_vnpy_v2
Code
Issues
5
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
master
sanguo_vnpy_v2
/
tests
/
trader
T
Add File
New File
Upload File
Apply Patch
Copy Permalink
Download directory as ZIP
Download directory as TAR.GZ
Delete Directory
History
claude_dev
5d5a9f29f4
CI/CD / nas-deploy (push)
Blocked by required conditions
Details
CI/CD / nas-verify (push)
Blocked by required conditions
Details
CI/CD / test (push)
Successful in 42s
Details
fix(config): 身份文件 ASCII 化(\u 转义)修 PS5.1 GBK 读炸——10-06 21:00 xt_eod 生产实证: ConvertFrom-Json FormatException→BIGQMT_ACCOUNT_ID 未注入→桥 shim 硬错 account_id is required→universe ETF/基金=0→rc=1(对照 10-05 同假期班 rows=37301 正常, 30d 窗口拉取自愈无数据损失); 修=ensure_ascii 重写(值 round-trip 等值)+test_qmt_identity 第④钉(文件纯 ASCII, phase-③ wrapper 裸 Get-Content 安全性由钉担保)+落档案 §四④/§五①′(部署硬期限=10-08 复市 21:00 xt-daily 前, 理想 10-07 当天) [vps] [no-doc]
2026-10-07 11:45:00 +08:00
..
__init__.py
feat(trader): models 数据类 + AccountConfig 费率(Issue#3)
2026-07-07 09:37:03 +08:00
test_account.py
feat(trader): Account总账+StrategyRunner分户(双层记账/资金T0/股票T1)
2026-07-07 11:50:40 +08:00
test_borrow_cost.py
feat(trader): C期分期项收尾—资金占用成本+分红送股+_restore_ledger修复
2026-07-10 08:44:35 +08:00
test_bridge_client.py
test(live): D-3持久化测试(bridge_client+影子下单集成, NAS环境11例绿)
2026-07-11 05:35:20 +08:00
test_cta_adapter.py
feat(trader): PaperCtaEngine 策略适配器(拦截send_order→PaperOrder)
2026-07-07 12:00:14 +08:00
test_d4a_integration.py
test(live): D-4a集成测试(mock bridge真HTTP, sanguo半边4例绿)
2026-07-11 05:41:43 +08:00
test_data_source.py
feat(data): 15min双源集成(data_source路由 + baostock格式适配)
2026-07-09 19:34:43 +08:00
test_dividend.py
feat(trader): C期分期项收尾—资金占用成本+分红送股+_restore_ledger修复
2026-07-10 08:44:35 +08:00
test_engine.py
feat(data): 恢复双源(task#79)—撮合raw+策略qfq, 分红除权准确
2026-07-08 07:21:33 +08:00
test_gateway.py
feat(bridge): bridge稳定性完善—自动重连miniQMT+health探活+交易日判断
2026-07-11 07:32:23 +08:00
test_limit.py
fix(trader): 价格精度 _price_eq + Decimal ROUND_HALF_UP (C1/H1)
2026-07-07 10:47:39 +08:00
test_m_l_fixes.py
fix(trader): M+L 接口校验 (listing_days/NaN/输入校验/类型注数) review
2026-07-07 11:23:16 +08:00
test_matcher.py
feat(matcher): 集合竞价CALL_AUCTION撮合(分期项)—开盘价(最大成交量原则→open)
2026-07-08 07:02:51 +08:00
test_models.py
feat(trader): models 数据类 + AccountConfig 费率(Issue#3)
2026-07-07 09:37:03 +08:00
test_persistence.py
feat(persistence): C-S3实走跨日状态—paper_pending_orders+positions/last_balance存取
2026-07-08 06:46:57 +08:00
test_portfolio_paper.py
feat(paper): 组合策略接入模拟盘实走(E1+E2): paper_accounts加strategy_type列(含迁移); portfolio_paper每晚20:30全量重放→当日成交/末日持仓/净值落paper表(幂等,回测引擎为单一真相源); run_live_step按类型分流; create支持portfolio(仅live); 前端新建模拟盘策略类型选择+组合字段(策略/池/上限/基准) [vps]
2026-08-13 18:32:09 +08:00
test_position_ledger.py
feat(trader): PositionLedger 单标的持仓(T+1冻结/均价)
2026-07-07 10:03:42 +08:00
test_qmt_identity.py
fix(config): 身份文件 ASCII 化(\u 转义)修 PS5.1 GBK 读炸——10-06 21:00 xt_eod 生产实证: ConvertFrom-Json FormatException→BIGQMT_ACCOUNT_ID 未注入→桥 shim 硬错 account_id is required→universe ETF/基金=0→rc=1(对照 10-05 同假期班 rows=37301 正常, 30d 窗口拉取自愈无数据损失); 修=ensure_ascii 重写(值 round-trip 等值)+test_qmt_identity 第④钉(文件纯 ASCII, phase-③ wrapper 裸 Get-Content 安全性由钉担保)+落档案 §四④/§五①′(部署硬期限=10-08 复市 21:00 xt-daily 前, 理想 10-07 当天) [vps] [no-doc]
2026-10-07 11:45:00 +08:00
test_reconcile.py
feat(trader): live bridge token 改从 config 读取,免容器重建
2026-07-13 19:30:58 +08:00
test_scheduler.py
feat(pipeline): 偏差日报补调度接线——20:50 APScheduler job 挂 ishortfall 日跑(审计终裁P1, runbook「随周报链跑」落地) [vps] [no-doc]
2026-09-27 07:58:20 +08:00
test_shadow_broker.py
fix(fee): 印花税全链对齐现行万5——10-01审计P1-9: 09-25勘误只修了ledger/ashare_engine/persistence三处, portfolio+影子链15点位漏网(shadow三默认+portfolio_paper+runner_backtest两兜底+live装配+8策略OrderCode close_tax), 影子对账曾自带一倍税差; 生产行显式值核对项已交infra [vps] [no-doc]
2026-10-01 09:28:14 +08:00
test_shadow_lock_routing.py
fix(shadow): 多账户worker不抢全局solo锁——根因实锤:__main__对--account N也走~/.sanguo_shadow_desk.lock全局锁,全机只放行一个影子worker(谁先抢到谁活),supervisor多账户并存时其余全部'锁占用'rc=0优雅退出→每60s重拉秒退循环;VPS实录40/41反复退出+42抢到锁独活(shadow_41.log一击定位);单账户时代从未暴露,2026-08-16用户建三影子账户即炸。修:--account分支跳过全局锁直进run_shadow(同账户防重复由bullet_trade runtime/shadow_{aid}实例锁+supervisor children表兜底);solo模式(无--account)维持全局锁防双开;+3路由测试(account跳锁/solo持锁/auto不碰柜台);936绿 [vps]
2026-08-16 18:51:07 +08:00
test_shadow_orders.py
feat(trader): live bridge token 改从 config 读取,免容器重建
2026-07-13 19:30:58 +08:00
test_shadow_reconcile_report.py
fix(reconcile): 恒等式只算在册实例——stopped书=冻结史不再慢性假红 [vps]
2026-10-01 08:01:24 +08:00
test_shadow_snapshot_dedupe.py
fix(vps验收五问题之四): ①#84个股回测/回放提交秒败——L2校验end>latest且end<=today(周末/节假日/当日未灌)不再400,引擎区间过滤自然截到latest;新增start>latest仍400(必空跑);VPS实况=结束默认今天周日>最新周五,首提即败 ②#85组合任务标的列永远000300.XSHG——worker symbol=benchmark改pool(spec透传,benchmark已在params);内存任务两处symbol回退symbol→pool→benchmark ③#42影子拉起即崩——live_strategy工厂表补4个TET副本映射(all_weather_ex等,01184c2改名后回测认得但影子/实盘runner不认,VPS shadow#42实录) ④#88影子快照刷垃圾行——_snapshot_loop每30s无条件写date=''行(40号半天97行),改_should_write_balance同日一行+空行情不写(+3测试) ⑤可观测性——supervisor子进程stdout/stderr落logs/shadow_{aid}.log(>5MB重置)+主管自身日志落logs/shadow_supervisor.log(原schtask控制台=黑洞,41/42崩因至今零线索);933绿 [vps]
2026-08-16 18:28:18 +08:00
test_shadow_supervisor.py
fix(fee): 印花税全链对齐现行万5——10-01审计P1-9: 09-25勘误只修了ledger/ashare_engine/persistence三处, portfolio+影子链15点位漏网(shadow三默认+portfolio_paper+runner_backtest两兜底+live装配+8策略OrderCode close_tax), 影子对账曾自带一倍税差; 生产行显式值核对项已交infra [vps] [no-doc]
2026-10-01 09:28:14 +08:00
test_soft_limit.py
feat(trader): 软限额max_allocation(分期项)—每策略资金额度消除顺序依赖
2026-07-09 22:05:35 +08:00
test_trade_calendar.py
feat(bridge): bridge稳定性完善—自动重连miniQMT+health探活+交易日判断
2026-07-11 07:32:23 +08:00
test_trade_receipt.py
feat(live): 成交回报回执②回执↔账本闭环比对器——用户钦点「再出现时根因可查」:09-04实证柜台有成交/台账无行/引擎会话视图无行且时间退化,「推送到达→回调处理→落库」三跳全静默无法定位故障点;观测契约三层=①引擎侧trade-receipt指纹行(策略session实现,tag/字段名以本模块解析器为准)+②本模块parse+compare:有回执无账行=引擎处理丢(直接证据),柜台有成交无回执=柜台没推(EOD恒等式层),③账本行带柜台成交号硬键(替换会退化的时间五元组);原则宁缺勿错:tid=NONE不做模糊匹配硬凑,如实分列;ledger_only为信息项(回执上线前旧行/repair行)不判脏;TDD 8测先红(模块不存在)后绿 [vps]
2026-09-06 10:53:24 +08:00