Skip to content

Commit e3f1945

Browse files
author
Kai Su
committed
modified: tigeropen/push/push_client.py
1 parent 51fab9a commit e3f1945

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tigeropen/push/push_client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@
3535
'marketValue': 'market_value', 'orderType': 'order_type', 'realizedPnl': 'realized_pnl',
3636
'unrealizedPnl': 'unrealized_pnl', 'secType': 'sec_type', 'localSymbol': 'local_symbol',
3737
'originSymbol': 'origin_symbol', 'contractId': 'contract_id', 'symbol': 'symbol',
38-
'currency': 'currency', 'strike': 'strike', 'expiry': 'expiry', 'right': 'right'}
38+
'currency': 'currency', 'strike': 'strike', 'expiry': 'expiry', 'right': 'right',
39+
'segment': 'segment'}
3940

4041
ORDER_KEYS_MAPPINGS = {'parentId': 'parent_id', 'orderId': 'order_id', 'orderType': 'order_type',
4142
'limitPrice': 'limit_price', 'auxPrice': 'aux_price', 'avgFillPrice': 'avg_fill_price',
@@ -45,7 +46,8 @@
4546
'outsideRth': 'outside_rth', 'timeInForce': 'time_in_force', 'openTime': 'order_time',
4647
'latestTime': 'trade_time', 'contractId': 'contract_id', 'trailStopPrice': 'trail_stop_price',
4748
'trailingPercent': 'trailing_percent', 'percentOffset': 'percent_offset', 'action': 'action',
48-
'status': 'status', 'currency': 'currency', 'remaining': 'remaining', 'id': 'id'}
49+
'status': 'status', 'currency': 'currency', 'remaining': 'remaining', 'id': 'id',
50+
'segment': 'segment'}
4951

5052
if sys.platform == 'linux' or sys.platform == 'linux2':
5153
KEEPALIVE = True

0 commit comments

Comments
 (0)