mirror of
https://ghfast.top/https://github.com/aeroxw/easy-tdx.git
synced 2026-09-12 18:04:16 +08:00
feat: 离线 fixture 测试、unknown 字段探测脚本、高可用传输层
- tests/fixtures/:录制 12 条命令真实响应 body(hex),配套 json 预期值 - tests/unit/test_commands_offline.py:13 个离线 pytest,无需网络,验证 各命令解析正确性及所有已知 bug 修复(#1~#5) - scripts/probe_unknowns.py:对比 unknown_1/2/3/5~8 与均价、涨停价等假设, 输出相关性分析报告,供后续字段逆向使用 - transport/sync.py:新增 ping_host()、ping_all()(并发测速)、KNOWN_HOSTS - client.py:TdxClient.from_best_host() 工厂方法(自动优选最低延迟服务器)、 TdxClient.ping_all() 静态代理、_execute() 断线自动重连(重试一次) - 修复 GetTransactionDataCmd.parse_response 多余 skip 参数调用 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
283682f6b4
commit
0fa685dbdd
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"num_records": 5,
|
||||
"first": {
|
||||
"open": 10.25,
|
||||
"high": 10.25,
|
||||
"low": 10.08,
|
||||
"close": 10.12,
|
||||
"vol": 41151820.0
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user