From 6c201d186803ad50248db641d4fa30df896c9ae3 Mon Sep 17 00:00:00 2001 From: c9s Date: Fri, 18 Mar 2022 17:43:14 +0800 Subject: [PATCH] kucoin: adjust rate limit to req/3sec --- pkg/exchange/kucoin/exchange.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/exchange/kucoin/exchange.go b/pkg/exchange/kucoin/exchange.go index ce2e34b28..8e5d77eb4 100644 --- a/pkg/exchange/kucoin/exchange.go +++ b/pkg/exchange/kucoin/exchange.go @@ -18,8 +18,8 @@ import ( ) var marketDataLimiter = rate.NewLimiter(rate.Every(500*time.Millisecond), 1) -var queryTradeLimiter = rate.NewLimiter(rate.Every(5*time.Second), 1) -var queryOrderLimiter = rate.NewLimiter(rate.Every(5*time.Second), 1) +var queryTradeLimiter = rate.NewLimiter(rate.Every(3*time.Second), 1) +var queryOrderLimiter = rate.NewLimiter(rate.Every(3*time.Second), 1) var ErrMissingSequence = errors.New("sequence is missing")