You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
frombinance.websocket.spot.websocket_streamimportSpotWebsocketStreamClientclient_class=SpotWebsocketStreamClientmy_client=client_class(on_message=print, on_close=print)
my_client.book_ticker(symbol=None) # this works for ALL or only one symbol
--> 217 my_client = client_class(on_message=msg_handler, on_close=on_close)
218 _ = symbols_ccxt # TODO: allow specific symbols
219 my_client.book_ticker(symbol=None) # this works for ALL or only one symbol
File "/home/wsai/.pyenv/versions/my-env/lib/python3.12/site-packages/binance/websocket/spot/websocket_stream.py", line 26, in __init__
super().__init__(
TypeError: BinanceWebsocketClient.__init__() got an unexpected keyword argument 'timeout'
EDIT:
The issue is caused by this: #324
To fix, check the answer: #324 (comment)
I'm running a straightforward code
--> 217 my_client = client_class(on_message=msg_handler, on_close=on_close)
218 _ = symbols_ccxt # TODO: allow specific symbols
219 my_client.book_ticker(symbol=None) # this works for ALL or only one symbol
File ~/venvs/cry/lib/python3.11/site-packages/binance/websocket/spot/websocket_stream.py:25, in SpotWebsocketStreamClient.init(self, stream_url, on_messag
e, on_open, on_close, on_error, on_ping, on_pong, is_combined, timeout, logger, proxies)
23 else:
24 stream_url = stream_url + "/ws"
---> 25 super().init(
26 stream_url,
27 on_message=on_message,
28 on_open=on_open,
29 on_close=on_close,
30 on_error=on_error,
31 on_ping=on_ping,
32 on_pong=on_pong,
33 timeout=timeout,
34 logger=logger,
35 proxies=proxies,
36 )
TypeError: BinanceWebsocketClient.init() got an unexpected keyword argument 'timeout'
The text was updated successfully, but these errors were encountered: