Open SpaceMonkeyForever opened 2 years ago
I've stumbled to the same problem. The issue is that ThreadedDepthManager tries to use its own client but the futures_depth_socket requires an async client. Best approach would be using DepthManager with an async client instead of ThreadedDepthManager.
Look at this pull request, it solved this issue for me, I made the change in my local copy. https://github.com/sammchardy/python-binance/pull/1055
Wanna try a new solution? https://github.com/LUCIT-Systems-and-Development/unicorn-binance-local-depth-cache
Not much tested till now, but you can help to improve with giving me feedback!
Thanks guys for all your answers, I really appreciate it. I moved to using cryptofeed soon after opening this, so I didn't try any of the given solutions.
I've stumbled to the same problem. The issue is that ThreadedDepthManager tries to use its own client but the futures_depth_socket requires an async client. Best approach would be using DepthManager with an async client instead of ThreadedDepthManager.
works like charm, thanks!
Simple orderbook ws code:
Result:
I'm using Python 3.9 and python-binance 1.0.15