ccxt-xigua
Version:
22 lines (17 loc) • 577 B
JavaScript
const testTradingFee = require ('./test.tradingFee.js')
module.exports = async (exchange, symbol) => {
const method = 'fetchTradingFee'
const skippedExchanges = []
if (skippedExchanges.includes (exchange.id)) {
console.log (exchange.id, 'found in ignored exchanges, skipping ' + method + '...')
return
}
if (exchange.has[method]) {
const fee = await exchange[method] (symbol)
testTradingFee (exchange, symbol, fee)
return fee
} else {
console.log (method + '() is not supported')
}
}