Skip to content

Commit ad9c1fb

Browse files
committed
test:update symbol and category in the mqtt demo
1 parent 009980d commit ad9c1fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webull-python-sdk-demos/tests/mdata/mqtt/custom_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def unsubscribe(self, symbols, category, sub_types, unsubscribe_all=False):
104104

105105
try:
106106
# subscribe
107-
res = custom_client.subscribe(['AAPL'], Category.US_STOCK.name,
107+
res = custom_client.subscribe(['00700'], Category.HK_STOCK.name,
108108
[SubscribeType.QUOTE.name, SubscribeType.SNAPSHOT.name, SubscribeType.TICK.name])
109109
print(res.path)
110110
print(res.request_id)
@@ -117,7 +117,7 @@ def unsubscribe(self, symbols, category, sub_types, unsubscribe_all=False):
117117
time.sleep(30)
118118

119119
print("unsubscribe")
120-
res = custom_client.unsubscribe(symbols=['AAPL'], category=Category.US_STOCK.name,
120+
res = custom_client.unsubscribe(symbols=['00700'], category=Category.HK_STOCK.name,
121121
sub_types=[SubscribeType.QUOTE.name],
122122
unsubscribe_all=False)
123123

0 commit comments

Comments
 (0)