chore: re-sync source to PyPI 0.6.7 (index trade stats, decimal sync, trade_count semantics fix); docs+CHANGELOG backfilled

This commit is contained in:
openbot committed 2026-10-23 08:40:44 +08:00
1 parent 0618062e54
commit feec86bf13
16 files changed
+1463 -98

No files matched your search

+15
View File
@@ -82,6 +82,21 @@ from pytdxdata import (
| `get_board_members(board, *, fields=None, count=100000)` | `list[SecurityQuote]` | 板块成分股报价(归一模型) |
| `get_board_of(symbols)` | `list[BelongBoard]` | 个股所属板块 |
#### 指数成分与统计(v0.6.7)
| 方法 | 返回 | 说明 |
|------|------|------|
| `get_index_members(index, *, count=100000, fields=None)` | `list[SecurityQuote]` | 指数成分股含实时报价(MAC 0x122C,指数码→板块码映射) |
| `get_index_trade_stats(index, *, date=None, members=None, batch_size=50, concurrency=24, skip_errors=True)` | `IndexTradeStats` | 指数逐笔聚合统计(分钟级增量 vol/trade_count/amount;北交所成分无笔数自动剔除) |
| `get_index_trade_stats_multi(index, dates, *, concurrency=24, batch_size=50, skip_errors=True, on_progress=None)` | `dict[int, IndexTradeStats]` | 多日批量版(按日期键) |
#### 价格小数位(v0.6.7)
| 方法 | 返回 | 说明 |
|------|------|------|
| `sync_decimal_points(markets=("sh","sz"))` | `dict[str, int]` | 从证券清单同步权威价格小数位表(`start()` 已自动处理,此为手动刷新口) |
| `decimal_point_status()` | `dict` | 小数位表当前状态(source/stock/syncing,排障用) |
### 2.2 K线(旧接口,共 6 个) {#legacy-kline}
| 方法 | 返回 | 说明 |