Skip to content

Commit 4ecd372

Browse files
committed
fix(ws): minor usability update
1 parent e4bfe80 commit 4ecd372

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

market_maker/ws/ws_thread.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def connect(self, endpoint="", symbol="XBTN15", shouldAuth=True):
6565

6666
# Connected. Wait for partials
6767
self.__wait_for_symbol(symbol)
68+
logger.info("%s received. Waiting for account...", symbol)
6869
if self.shouldAuth:
6970
self.__wait_for_account()
7071
logger.info('Got all market data. Starting.')
@@ -199,7 +200,7 @@ def __wait_for_account(self):
199200

200201
def __wait_for_symbol(self, symbol):
201202
'''On subscribe, this data will come down. Wait for it.'''
202-
while not {'instrument', 'trade', 'quote'} <= set(self.data):
203+
while not {'instrument', 'quote'} <= set(self.data):
203204
sleep(0.1)
204205

205206
def __send_command(self, command, args):

0 commit comments

Comments
 (0)