Skip to content

Commit 82fd8fb

Browse files
committed
fix place_order orders
1 parent 4218e92 commit 82fd8fb

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.4.3 (2025-07-22)
2+
### Fix
3+
下单返回 orders 属性处理
4+
15
## 3.4.2 (2025-07-18)
26
### New
37
订单工具函数支持 time_in_force 参数

tigeropen/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
55
@author: gaoan
66
"""
7-
__VERSION__ = '3.4.2'
7+
__VERSION__ = '3.4.3'

tigeropen/common/consts/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class Market(Enum):
3131

3232
@unique
3333
class TradingSession(Enum):
34+
All = 'All'
3435
PreMarket = 'PreMarket' # 盘前
3536
Regular = 'Regular' # 盘中
3637
AfterHours = 'AfterHours' # 盘后

tigeropen/trade/trade_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ def place_order(self, order, lang=None):
646646
if response.is_success():
647647
order.id = response.id
648648
order.sub_ids = response.sub_ids
649-
order.result = response.orders
649+
order.orders = response.orders
650650
if order.order_id is None and response.order_id:
651651
order.order_id = response.order_id
652652
return response.id

0 commit comments

Comments
 (0)