UNPKG

ccxt-xigua

Version:

A JavaScript / Python / PHP cryptocurrency trading library with support for 130+ exchanges

20 lines (18 loc) 580 B
'use strict' 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') } }