UNPKG

ccxt-look

Version:

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

20 lines (18 loc) 590 B
'use strict' module.exports = async (exchange) => { const skippedExchanges = [ 'bibox', // fetchFundingFees should be rewritten to fetchFundingFee ] if (skippedExchanges.includes (exchange.id)) { console.log (exchange.id, 'found in ignored exchanges, skipping fetchFundingFees...') return } if (exchange.has.fetchFundingFees) { const method = 'fetchFundingFees' const fees = await exchange[method] () console.log (fees) return fees } else { console.log ('fetching funding fees not supported') } }