Binance: Fix websocket subscribe error with many currency pairs enabled (#670)

* Fix subscribe error with many currency pairs

* Adds proper rate limit. Adds empty check.

Co-authored-by: gloriousCode <scott.grant@thrasher.io>
Co-authored-by: Scott <gloriousCode@users.noreply.github.com>
This commit is contained in:
arttobe
2021-06-23 07:53:57 +02:00
committed by GitHub
parent 83057ef515
commit d978b3bbdc
3 changed files with 27 additions and 8 deletions

View File

@@ -241,6 +241,7 @@ func (b *Binance) Setup(exch *config.ExchangeConfig) error {
return b.Websocket.SetupNewConnection(stream.ConnectionSetup{
ResponseCheckTimeout: exch.WebsocketResponseCheckTimeout,
ResponseMaxLimit: exch.WebsocketResponseMaxLimit,
RateLimit: wsRateLimitMilliseconds,
})
}