mirror of
https://ghfast.top/https://github.com/aeroxw/easy-tdx.git
synced 2026-09-12 22:44:17 +08:00
- 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>
9 lines
129 B
JSON
9 lines
129 B
JSON
{
|
|
"num_records": 1,
|
|
"first": {
|
|
"code": "600000",
|
|
"pre_close": 9.93,
|
|
"unknown_2": -1,
|
|
"unknown_3": 22694
|
|
}
|
|
} |