Skip to content
This repository was archived by the owner on Jun 22, 2026. It is now read-only.

Commit 019db08

Browse files
anonymous-ljfangjia
authored andcommitted
feat: Modify transaction event push notifications
1 parent 99e3876 commit 019db08

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎webull/trade/trade_events_client.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ def __init__(self, app_key, app_secret, region_id=DEFAULT_REGION_ID, host=None,
6868
self._on_log = None
6969

7070
def _build_request(self, app_key, app_secret, accounts):
71+
if self._region_id == 'us':
72+
subscribeType = 3
73+
else:
74+
subscribeType = 1
7175
request = pb.SubscribeRequest(
72-
subscribeType= 3, # only 1、2 allowed now
76+
subscribeType= subscribeType, # 1、2、3 allowed now
7377
timestamp=int(time.time() * 1000), # millis
7478
accounts=accounts,
7579
)

0 commit comments

Comments
 (0)