Fixed a function missing arguments
This commit is contained in:
parent
ea1c29ebba
commit
60a19af1a8
1 changed files with 1 additions and 2 deletions
|
|
@ -7,10 +7,9 @@ const { buildMarket, verifyFiatSupport } = require('../common/ccxt')
|
||||||
|
|
||||||
function ticker (fiatCode, cryptoCode, tickerName) {
|
function ticker (fiatCode, cryptoCode, tickerName) {
|
||||||
const ticker = new ccxt[tickerName]({ timeout: 3000 })
|
const ticker = new ccxt[tickerName]({ timeout: 3000 })
|
||||||
if (verifyFiatSupport) {
|
if (verifyFiatSupport(fiatCode, tickerName)) {
|
||||||
return getCurrencyRates(ticker, fiatCode, cryptoCode)
|
return getCurrencyRates(ticker, fiatCode, cryptoCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
return axios.get('https://bitpay.com/rates')
|
return axios.get('https://bitpay.com/rates')
|
||||||
.then(response => {
|
.then(response => {
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue