ccxt-xigua
Version:
20 lines (18 loc) • 580 B
JavaScript
module.exports = async (exchange) => {
const method = 'fetchTransactionFees'
const skippedExchanges = [
'bibox', // fetchTransactionFees should be rewritten to fetchTransactionFee
]
if (skippedExchanges.includes (exchange.id)) {
console.log (exchange.id, 'found in ignored exchanges, skipping ' + method + '...')
return
}
if (exchange.has[method]) {
const fees = await exchange[method] ()
console.log (fees)
return fees
} else {
console.log (method + '() is not supported')
}
}