You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When starting a new thread; twm.start_depth_socket it blocks long enough that I get lagging issue on twm.start_aggtrade_socket and the price data becomes out of date. I've timed strategy.update_depth and reduced it to just setting an instance variable to store the data coming into twm.start_depth_socket but the problem still persists. I have also tried to use ThreadedDepthCacheManager and that had the same problem of causing a lag on other threads.
To Reproduce
Code snippet to reproduce the behavior:
Expected behavior
No lagging on other threads when I use twm.start_*
Environment (please complete the following information):
Python version: 3.11.3
Virtual Env: virtualenv
OS: Fedora 38
python-binance version: 1.0.17
Logs or Additional context
I am sharing the strategy object among twm.start_depth_socket and twm.start_aggtrade_socket and twm.start_user_socket however there is no conflict or race condition since they each update their own variables without updating variables belonging to other threads. The problem I'm seeing is that the price that I receive in start_aggtrade_socket is lagged behind and outdated and when I watch and compare it to the Binance Client price.
I tried it only on TESTNET
The text was updated successfully, but these errors were encountered:
Describe the bug
When starting a new thread;
twm.start_depth_socket
it blocks long enough that I get lagging issue ontwm.start_aggtrade_socket
and the price data becomes out of date. I've timedstrategy.update_depth
and reduced it to just setting an instance variable to store the data coming intotwm.start_depth_socket
but the problem still persists. I have also tried to useThreadedDepthCacheManager
and that had the same problem of causing a lag on other threads.To Reproduce
Code snippet to reproduce the behavior:
Expected behavior
No lagging on other threads when I use
twm.start_*
Environment (please complete the following information):
Logs or Additional context
I am sharing the strategy object among
twm.start_depth_socket
andtwm.start_aggtrade_socket
andtwm.start_user_socket
however there is no conflict or race condition since they each update their own variables without updating variables belonging to other threads. The problem I'm seeing is that theprice
that I receive instart_aggtrade_socket
is lagged behind and outdated and when I watch and compare it to the Binance Client price.I tried it only on
TESTNET
The text was updated successfully, but these errors were encountered: