From 6c2c6353aa7658bcf4ecf8134f06a35f6558f9a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20S=C3=A1?= Date: Tue, 19 Apr 2022 13:32:47 +0100 Subject: [PATCH] feat: lower the ticker rate limit --- lib/plugins/ticker/ccxt.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/plugins/ticker/ccxt.js b/lib/plugins/ticker/ccxt.js index 09d8dbd7..154d7eb4 100644 --- a/lib/plugins/ticker/ccxt.js +++ b/lib/plugins/ticker/ccxt.js @@ -11,7 +11,11 @@ const tickerObjects = {} function ticker (fiatCode, cryptoCode, tickerName) { const ticker = tickerObjects[tickerName] ? tickerObjects[tickerName] : - tickerObjects[tickerName] = new ccxt[tickerName]({ timeout: 3000 }) + tickerObjects[tickerName] = new ccxt[tickerName]({ + timeout: 3000, + enableRateLimit: true, + rateLimit: 333, + }) if (verifyFiatSupport(fiatCode, tickerName)) { return getCurrencyRates(ticker, fiatCode, cryptoCode)