max: adjust account query rate limiter

This commit is contained in:
c9s 2023-04-12 22:58:10 +08:00
parent 7c9109aeea
commit 19621e48fe
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -55,7 +55,7 @@ func New(key, secret string) *Exchange {
// closedOrderQueryLimiter is used for the closed orders query rate limit, 1 request per second
closedOrderQueryLimiter: rate.NewLimiter(rate.Every(1*time.Second), 1),
accountQueryLimiter: rate.NewLimiter(rate.Every(3*time.Second), 1),
accountQueryLimiter: rate.NewLimiter(rate.Every(1*time.Second), 1),
marketDataLimiter: rate.NewLimiter(rate.Every(2*time.Second), 10),
}
}