From a2c2646a16f0d4cf81b8c4210c99b04f9b073bad Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 5 Nov 2021 01:25:16 +0800 Subject: [PATCH] binance: adjust rate limiter bucket --- pkg/exchange/binance/exchange.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/exchange/binance/exchange.go b/pkg/exchange/binance/exchange.go index 2d0435009..9b13440b4 100644 --- a/pkg/exchange/binance/exchange.go +++ b/pkg/exchange/binance/exchange.go @@ -24,7 +24,8 @@ import ( const BNB = "BNB" // 50 per 10 seconds = 5 per second -var orderLimiter = rate.NewLimiter(5, 50) +var orderLimiter = rate.NewLimiter(5, 5) + var log = logrus.WithFields(logrus.Fields{ "exchange": "binance",