fix ipo bug

This commit is contained in:
2026-09-14 23:59:53 +08:00
parent c8151f4a3f
commit efc53b35fc
4 changed files with 163 additions and 11 deletions

View File

@@ -323,6 +323,21 @@ passorder(opType, orderType, account_id, stockCode, prType, price,
响应直接序列化底层结果,不包装或重命名字段,具体结构由 QMT 提供。使用默认参数也需发送 `{}`
`get_ipo_data()` 实际返回**以证券代码为键的字典**(部分 QMT 版本再按市场分一层),键可用于 `passorder``stockCode`
```json
{"type":"STOCK"}
```
```json
{
"301001.SZ":{"issuePrice":12.5,"maxPurchaseNum":15000,"stockName":"示例"},
"601127.SH":{"issuePrice":4.09,"maxPurchaseNum":15000}
}
```
`py-client``sdk/trade.py` 会把它规范化成候选列表并补出 `stock` 字段;当日无新股时返回空字典。
## 10. Python 版本
`GET /api/sys/python_version`,无参数。