feat: lower the ticker rate limit
This commit is contained in:
parent
4747e0b7f6
commit
6c2c6353aa
1 changed files with 5 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue