mirror of
https://ghfast.top/https://github.com/aeroxw/easy_tdx_max.git
synced 2026-09-12 18:04:20 +08:00
Document BJ security list limitation
This commit is contained in:
@@ -13,7 +13,8 @@ pytdx 年久失修:多处已知解析 bug、Python 2 包袱、无类型注解
|
||||
- **修复 pytdx 已知 bug**(见下文)
|
||||
- **保留原始字节**:每条数据记录含 `_raw: bytes`,未知字段以 `unknown_N` 命名而非丢弃
|
||||
- **保活心跳机制**:`AsyncTdxClient` 自动发送心跳包,确保长连接生产环境稳定性
|
||||
- **全市场覆盖**:完整支持沪深京三市 A 股(SH/SZ/BJ),自动过滤非 A 股品种
|
||||
- **沪深 A 股完整列表**:`get_security_list_all()` 自动过滤非 A 股品种并挂载行业信息
|
||||
- **北交所列表限制**:`get_security_list(Market.BJ, start)` 当前不能稳定获取,BJ 暂未纳入 `get_security_list_all()`
|
||||
- **全市场涨跌统计**:一键获取全 A 股涨/跌/平家数及总成交额
|
||||
- **离线 + 本地传输回归测试**:覆盖解析、异步并发串行化、超时、自动重连与坏包处理
|
||||
|
||||
@@ -95,7 +96,7 @@ client = AsyncTdxClient.from_best_host(ping_timeout=5.0)
|
||||
| 方法 | 说明 |
|
||||
|------|------|
|
||||
| `get_security_count(market)` | 市场证券总数 |
|
||||
| `get_security_list(market, start)` | 证券列表(每页 ~1000 条) |
|
||||
| `get_security_list(market, start)` | 证券列表(每页 ~1000 条;BJ 当前不能稳定获取) |
|
||||
| `get_security_list_all()` | 沪深 A 股列表(自动挂载行业信息;BJ 暂未纳入) |
|
||||
| `get_market_stat()` | 全市场 A 股涨跌统计(家数、成交额) |
|
||||
| `get_security_quotes([(market, code), ...])` | 批量实时五档行情(最多 80 只/次) |
|
||||
@@ -118,6 +119,10 @@ client = AsyncTdxClient.from_best_host(ping_timeout=5.0)
|
||||
`AsyncTdxClient` 提供与同步版对应的查询方法与高可用入口,均为 `async def`。
|
||||
单个 `AsyncTdxClient` 仅维护一条 TCP 连接;并发调用会在连接内串行执行。
|
||||
|
||||
## 已知限制
|
||||
|
||||
- `xmtdx` 当前不能稳定获取 BJ 证券列表;`get_security_count(Market.BJ)` 可用,但 `get_security_list(Market.BJ, start)` 经常超时,因此 `get_security_list_all()` 暂不纳入 BJ。
|
||||
|
||||
### KlineCategory
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user