Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

websockets depthCacheStaggered reconnect does not wait #874

Open
kiukishenkaec opened this issue Feb 16, 2023 · 0 comments
Open

websockets depthCacheStaggered reconnect does not wait #874

kiukishenkaec opened this issue Feb 16, 2023 · 0 comments

Comments

@kiukishenkaec
Copy link

kiukishenkaec commented Feb 16, 2023

We are currently monitoring 300+ symbols. Depth 1000 (weight 10). There is a delay in queries during script start. But when reconnecting the websocket, everything collapses.

When reconnecting ( Binance.options.reconnect == true), the time between requests is not respected. Therefore, we run into the limitation of api binance 1200 wight
1
Can it check during reconnection and not send depth requests again, but only reconnect via websocket?

Do something like the following. Replace:
before
if ( Binance.options.reconnect ) depthCacheFunction( symbols, callback, limit );
after
if ( Binance.options.reconnect ) depth( symbols, callback );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant