LUCIT-Systems-and-Development / unicorn-binance-websocket-api

A Python SDK by LUCIT to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, dex/chain+testnet) in a simple, fast, flexible, robust and fully-featured way.
https://unicorn-binance-websocket-api.docs.lucit.tech/
Other
688 stars 164 forks source link

./example_binance_dex.py error after start #34

Closed oliver-zehentleitner closed 4 years ago

oliver-zehentleitner commented 4 years ago

./example_binance_dex.py throws this error imediatly after the start:

`Exception in thread Thread-19: Traceback (most recent call last): File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/usr/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "/home/oliver/testlab/unicorn-binance-websocket-api/unicorn_binance_websocket_api/unicorn_binance_websocket_api_manager.py", line 239, in _create_stream_thread loop.run_until_complete(binance_websocket_api_socket.start_socket()) File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete return future.result() File "/home/oliver/testlab/unicorn-binance-websocket-api/unicorn_binance_websocket_api/unicorn_binance_websocket_api_socket.py", line 55, in start_socket self.channels, self.markets) as websocket: File "/home/oliver/testlab/unicorn-binance-websocket-api/unicorn_binance_websocket_api/unicorn_binance_websocket_api_connection.py", line 105, in aenter await self.send(json.dumps(payload, ensure_ascii=False)) File "/home/oliver/testlab/unicorn-binance-websocket-api/unicorn_binance_websocket_api/unicorn_binance_websocket_api_connection.py", line 252, in send await self.handler_binance_websocket_api_manager.websocket_list[self.stream_id].send(data) KeyError: UUID('a3606f83-66c4-4423-a6f2-dd5c3666f846')

Exception in thread Thread-22: Traceback (most recent call last): File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/usr/lib/python3.6/threading.py", line 864, in run self._target(*self._args, **self._kwargs) File "/home/oliver/testlab/unicorn-binance-websocket-api/unicorn_binance_websocket_api/unicorn_binance_websocket_api_manager.py", line 239, in _create_stream_thread loop.run_until_complete(binance_websocket_api_socket.start_socket()) File "/usr/lib/python3.6/asyncio/base_events.py", line 484, in run_until_complete return future.result() File "/home/oliver/testlab/unicorn-binance-websocket-api/unicorn_binance_websocket_api/unicorn_binance_websocket_api_socket.py", line 55, in start_socket self.channels, self.markets) as websocket: File "/home/oliver/testlab/unicorn-binance-websocket-api/unicorn_binance_websocket_api/unicorn_binance_websocket_api_connection.py", line 105, in aenter await self.send(json.dumps(payload, ensure_ascii=False)) File "/home/oliver/testlab/unicorn-binance-websocket-api/unicorn_binance_websocket_api/unicorn_binance_websocket_api_connection.py", line 252, in send await self.handler_binance_websocket_api_manager.websocket_list[self.stream_id].send(data) KeyError: UUID('f83a4842-020c-47d6-923c-328358ac596c') `