mirror of
https://ghfast.top/https://github.com/aeroxw/easy_tdx_max.git
synced 2026-09-12 15:44:18 +08:00
feat: 实现全量 A 股列表获取与行业信息自动挂载
1. 编解码器:新增 codec/industry.py 用于解析 tdxhy.cfg 行业配置。 2. 数据模型:SecurityInfo 增加 industry_tdx 和 industry_sw 字段。 3. 客户端 API:增加 get_security_list_all(),支持分页拉取全市场 A 股并自动匹配行业标签。 4. 通讯优化:更新 KNOWN_HOSTS 包含更稳定的华为云及招商证券节点。 5. 文档更新:README.md 同步 API 及数据模型变更。
This commit is contained in:
@@ -95,6 +95,7 @@ client = AsyncTdxClient.from_best_host(ping_timeout=5.0)
|
||||
|------|------|
|
||||
| `get_security_count(market)` | 市场证券总数 |
|
||||
| `get_security_list(market, start)` | 证券列表(每页 ~1000 条) |
|
||||
| `get_security_list_all()` | 全市场 A 股列表(自动挂载行业信息) |
|
||||
| `get_security_quotes([(market, code), ...])` | 批量实时五档行情(最多 80 只/次) |
|
||||
| `get_security_bars(market, code, category, start, count=800)` | K 线(股票) |
|
||||
| `get_index_bars(market, code, category, start, count=800)` | K 线(指数) |
|
||||
@@ -164,6 +165,7 @@ _raw
|
||||
|
||||
```
|
||||
market code name volunit decimal_point pre_close
|
||||
industry_tdx industry_sw
|
||||
```
|
||||
|
||||
### XdxrRecord(除权除息)
|
||||
|
||||
Reference in New Issue
Block a user