fix: binance ticker default market fiat

This commit is contained in:
josepfo 2022-12-20 11:49:47 +00:00 committed by Rafael
parent c5f3caab2f
commit b52ad6c8da
3 changed files with 12 additions and 6 deletions

View file

@ -23,7 +23,8 @@ const ALL = {
bitpay: bitpay,
coinbase: {
CRYPTO: [BTC, ETH, LTC, DASH, ZEC, BCH, USDT, USDT_TRON, TRX, LN],
FIAT: 'ALL_CURRENCIES'
FIAT: 'ALL_CURRENCIES',
DEFAULT_FIAT_MARKET: 'EUR'
},
binance: binance,
bitfinex: bitfinex
@ -51,4 +52,8 @@ function isConfigValid (config, fields) {
return _.every(it => it || it === 0)(values)
}
module.exports = { buildMarket, ALL, verifyFiatSupport, isConfigValid }
function defaultFiatMarket (serviceName) {
return ALL[serviceName].DEFAULT_FIAT_MARKET
}
module.exports = { buildMarket, ALL, verifyFiatSupport, isConfigValid, defaultFiatMarket }