Skip to content

Commit

Permalink
fix missing symbol parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-zehentleitner committed Sep 15, 2020
1 parent 7313da1 commit 3673e5e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ def __init__(self, handler_binance_websocket_api_manager, stream_id, channels, m
self.markets = markets
self.socket_id = uuid.uuid4()
self.handler_binance_websocket_api_manager.stream_list[self.stream_id]['recent_socket_id'] = self.socket_id
self.symbol = self.handler_binance_websocket_api_manager.stream_list[self.stream_id]['symbol']

async def start_socket(self):
logging.info("BinanceWebSocketApiSocket->start_socket(" +
str(self.stream_id) + ", " + str(self.channels) + ", " + str(self.markets) + ")")
async with BinanceWebSocketApiConnection(self.handler_binance_websocket_api_manager, self.stream_id,
self.channels, self.markets) as websocket:
self.channels, self.markets, symbol=self.symbol) as websocket:
while True:
if self.handler_binance_websocket_api_manager.is_stop_request(self.stream_id):
self.handler_binance_websocket_api_manager.stream_is_stopping(self.stream_id)
Expand Down

0 comments on commit 3673e5e

Please sign in to comment.