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
683 stars 164 forks source link

KeyError #82

Closed DaWe35 closed 4 years ago

DaWe35 commented 4 years ago

Reproduce: python example_stream_everything.py and wait for 3-6 seconds

Exception in thread Thread-4:
Traceback (most recent call last):
  File "C:\Users\Hp\AppData\Local\Programs\Python\Python37-32\lib\threading.py", line 917, in _bootstrap_inner
    self.run()
  File "C:\Users\Hp\AppData\Local\Programs\Python\Python37-32\lib\threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\Hp\AppData\Local\Programs\Python\Python37-32\lib\site-packages\unicorn_binance_websocket_api\unicorn_binance_websocket_api_manager.py", line 489, in _test_if_alive
    self.keepalive_streams_list[testalive_streams_id]['last_heartbeat'] = time.time()
KeyError: 1591447126.1199386
oliver-zehentleitner commented 4 years ago

I know, I pushed it to github yesterday evening but it's not ready

DaWe35 commented 4 years ago

Then sorry, maybe not a breaking thing. Would be nice to push a release if it's stable, the Installion->From source of the latest release with PIP from Github->Windows method in README not works. https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/archive/1.11.0.tar.gz 404 not found

oliver-zehentleitner commented 4 years ago

hi dawe!

in general just go to releases and look what the last version number is: https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/tags

but this release is still having this bug: https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/issues/45

i wrote update that i test here since 4 days and its pretty stable, i hope i solved the issue 45 with this. till now its looking good!

So I recommend installing this commit https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/commit/bbdef1f73b9f9d92ef04946e97325d926b0a39de

I need to make more tests then i will release a final stable version. i guess it will take one week if i dont find more bugs.