Closed Indiana3714 closed 2 years ago
Maybe CoinM Futures are affected by this bug too: https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/issues/196
just try installing websockets 9.1 instead of 10.0 and start it again! Does it work now?
Yes it works fine with websockets 9.1
Perhaps thats why python-binance restricted it to 9.1 as well in one of their latest releases, here is the log after changing to websockets 9.1 if it helps you:
example_binance_coin_futures.py.log
Summary:
==================== unicorn-binance-websocket-api_1.34.1.dev-python_3.9.7 ====================
exchange: binance.com-coin-futures
uptime: 1m:4s since 2021-10-18, 12:54:42 UTC
streams: 1
active_streams: 1
subscriptions: 3
current_receiving_speed: 6.63 kB/s
average_receiving_speed: 24.62 kB/s (per day 2.03 gB)
highest_receiving_speed: 200.8 kB/s (reached at 2021-10-18, 12:55:10 UTC)
total_receives: 6942
total_received_bytes: 1627176 (1.55 mB)
total_transmitted_payloads: 1
stream_buffer_maxlen: None
process_ressource_usage: cpu=22.6%, memory=48.04 mB, threads=6
---------------------------------------------------------------------------------------------
stream_id | stream_label | last | average | peak | recon
---------------------------------------------------------------------------------------------
b3180eb8-8fc9-4c59-9790-2de45c937f80 | None | 29 | 108.09 | 878 | 0
---------------------------------------------------------------------------------------------
all_streams | 29 | 108.09 | 878 | 0
===============================================================================================
for sure it is, i know the issue on python-binance.
we are doing the same. i think till ubwa 1.33.1 we used websockets 9.1 and i swapped to websockets 10.0 with 1.34.0. then we recognized this bug, reported it to websocket libs and they found out an issue in binance and AWS api gateway and they reported it to AWS and i reported it to binance. binance confirmed the issue and is planing to release an update on their futures api in the end of october 2021. then the new "optimization feature" (which is provocation this bug) will be supported by binance and we can use it. till then i disabled the new feature of websockets 10.0 in ubwa for future endpoints. i will release 1.34.2 soon with a fix for coin-futures and websockets 10.0.
I see thanks Oliver, any chance you can edit the requirements and setup.py for websockets==9.1? That way poetry can resolve correctly on your main branch
Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])
Select one:
Environment
What kind of internet connection do you have?
Average system load (CPU)
Hardware specification
Operating System? (include version)
Options
Which endpoint do you connect?
Python Version Requirement
Exact Python Version?
Pip Version?
Dependencies
Run
pip list > pip_list.txt
and upload the file.UNICORN Binance WebSocket API Version?
Description of your issue
After cloning your master branch yesterday, I've used your example "example_binance_coin_futures.py" and commented out lines 64 to 74 and 79 to 83. (This leaves aggTrade being the only channel subscribed)
Here's the summary after 1 minute, (no packets are ever received):