Closed mbellmbell closed 5 years ago
having the same problem. in the binance chat someone told me that trailing is no longer allowed. so:
wss://stream.binance.com:9443/stream?streams=btcusdt@depth/btcusdt@trade/ -> invalid
wss://stream.binance.com:9443/stream?streams=btcusdt@depth/btcusdt@trade -> valid
could you guys check that and maybe tell me how i can hotfix that?
@GezaBoi I did the following (note that I just tested with my scenario, so I'm not sure what sort of mayhem it could create):
In unicorn_binance_websocket_api_manager.py
above line 638:
return self.websocket_base_uri + str(query)
insert the line:
query = query[:-1]
Same level of indent., This will just remove the "/" at the end. Works for me.
@mmm3bbb fix worked for me as well! thanks for letting me know.
@bithon this error seems easy to fix. could you update the repo?
Hello! Thanks for providing the infos! I will update and test the repository asap. Best regards!
Code on github is updated and tested. A new release is created and a new wheel is available on pypi!
https://github.com/unicorn-data-analysis/unicorn-binance-websocket-api/releases
Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])
Select one:
Environment
Operating System? (include version)
Python Version Requirement
Exact Python Version?
Pip Version?
Dependencies
Run `pip list > pip_list.txt pip_list.txt
` and upload the file.
UNICORN Binance WebSocket API Version?
Description of your issue
System has been running smoothly for months. Today, I started receiving the error message below. I haven't updated any code or libraries in a few weeks. Note that Binance updated their API yesterday, including some websockets update. I tried both 7.0 and 8.0 websockets, on a Mac and Ubuntu. Same issue everywhere.
Also note that the https://github.com/sammchardy/python-binance library continues to work.