fix ipo bug
This commit is contained in:
15
docs/api.md
15
docs/api.md
@@ -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`,无参数。
|
||||
|
||||
Reference in New Issue
Block a user