Fixing some bugs and minor changes
This commit is contained in:
parent
7accdaa84f
commit
ea1c29ebba
5 changed files with 23 additions and 15 deletions
|
|
@ -3,11 +3,11 @@ const axios = require('axios')
|
|||
const ccxt = require('ccxt')
|
||||
|
||||
const BN = require('../../bn')
|
||||
const { buildMarket } = require('../common/ccxt')
|
||||
const { buildMarket, verifyFiatSupport } = require('../common/ccxt')
|
||||
|
||||
function ticker (fiatCode, cryptoCode, tickerName) {
|
||||
const ticker = new ccxt[tickerName]({ timeout: 3000 })
|
||||
if (fiatCode === 'EUR' || fiatCode === 'USD' || ticker.id === 'coinbase') {
|
||||
if (verifyFiatSupport) {
|
||||
return getCurrencyRates(ticker, fiatCode, cryptoCode)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue