Skip to content

websockets depthCacheStaggered reconnect does not wait #874

Open

Description

@kiukishenkaec

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 );

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions