mirror of
https://ghfast.top/https://github.com/aeroxw/easy-tdx.git
synced 2026-09-12 14:34:15 +08:00
release: v1.17.6 — 港股逐笔成交全量取数 + start 倒序语义文档
回应 issue #14 后用户反馈:默认 count=2000 取回的成交时间全集中在尾盘。 根因是通达信逐笔协议(A 股 0x122F 与港股 ex 0x23FC/0x2406 一致)的 start 为 倒序语义——start=0 指向最新一笔(收盘方向),并非 bug。02715 全天成交 13327 笔,count=2000 只取最近 2000 笔故集中在尾盘。 新增: - goods_transaction_all(MacExClient 同步+异步)—— 港股股票类市场自动按 1800/页 翻页取全天全部逐笔成交,安全上限 50 页(90000 条)。返回协议原生倒序,需正序 由调用方 df.iloc[::-1]。market 非港股时抛 ValueError。 - _fetch_all_hk_transactions_sync/async(_hk_transaction.py)底层实现。 变更: - goods_transaction docstring 补 start 倒序语义说明,引导需全天数据用 goods_transaction_all。 修复: - 1.17.5 的 test_hk_transaction.py 未过 CI ruff format --check(注释对齐、 MacTransaction 单行化、文末空行)。 867 单测全绿(+5 全量取数测试),ruff format/check / mypy strict 通过。
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "easy-tdx"
|
||||
version = "1.17.5"
|
||||
version = "1.17.6"
|
||||
description = "通达信 TCP 协议行情数据客户端,支持在线行情、离线数据读取与写入同步"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.10"
|
||||
|
||||
Reference in New Issue
Block a user