Skip to content

Commit 617b3ec

Browse files
committed
Merge branch 'feature_amal_order' into 'dev'
Feature amal order See merge request server/openapi/openapi-python-sdk!165
2 parents 82e6fd9 + 9c56a39 commit 617b3ec

File tree

6 files changed

+39
-3
lines changed

6 files changed

+39
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 2.3.4 (2023-03-20)
2+
### New
3+
- 支持AM/AL(盘前竞价单)
4+
### Fix
5+
- 修复PushClient报错模块找不到的问题
6+
17
## 2.3.3 (2023-03-10)
28
### Modify
39
- 支持多进程运行场景下的 token 刷新,需安装 pip install watchdog 已开启 token 文件监听

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ getmac
1010
cryptography
1111
backoff
1212
jproperties
13-
protobuf==4.21.12
14-
google-cloud==0.34.0
13+
protobuf
14+
google-cloud

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__ = '2.3.3'
7+
__VERSION__ = '2.3.4'

tigeropen/common/consts/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ class OrderType(Enum):
187187
STP = 'STP' # 止损单
188188
STP_LMT = 'STP_LMT' # 止损限价单
189189
TRAIL = 'TRAIL' # 跟踪止损单
190+
AM = 'AM' # Auction Market ,竞价市价单
191+
AL = 'AL' # Auction Limit ,竞价限价单
190192

191193

192194
@unique

tigeropen/common/util/order_utils.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,34 @@ def trail_order(account, contract, action, quantity, trailing_percent=None, aux_
7474
return Order(account, contract, action, 'TRAIL', quantity, trailing_percent=trailing_percent, aux_price=aux_price)
7575

7676

77+
def auction_limit_order(account, contract, action, quantity, limit_price, time_in_force='DAY'):
78+
"""
79+
竞价限价单 Auction Limit
80+
:param account:
81+
:param contract:
82+
:param action: BUY/SELL
83+
:param quantity:
84+
:param limit_price: 限价的价格
85+
:param time_in_force: only support 'DAY' or 'OPG' (Opening Price Gap, 盘前竞价有效)
86+
:return:
87+
"""
88+
return Order(account, contract, action, 'AL', quantity, limit_price=limit_price, outside_rth=True,
89+
time_in_force=time_in_force)
90+
91+
92+
def auction_market_order(account, contract, action, quantity, time_in_force='DAY'):
93+
"""
94+
竞价市价单 Auction Market
95+
:param account:
96+
:param contract:
97+
:param action: BUY/SELL
98+
:param quantity:
99+
:param time_in_force: only support 'DAY' or 'OPG' (Opening Price Gap, 盘前竞价有效)
100+
:return:
101+
"""
102+
return Order(account, contract, action, 'AM', quantity, outside_rth=True, time_in_force=time_in_force)
103+
104+
77105
def order_leg(leg_type, price, time_in_force='DAY', outside_rth=None, limit_price=None, trailing_percent=None,
78106
trailing_amount=None):
79107
"""

tigeropen/push/pb/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)