Current Folder

This commit is contained in:
Luis Fernando Molina committed 2020-11-20 14:05:59 +01:00
1 parent 8b3382289b
commit cfcada880d
4379 files changed

No files matched your search

-38
View File
@@ -1,38 +0,0 @@
'use strict'
// ----------------------------------------------------------------------------
const log = require ('ololog')
, ansi = require ('ansicolor').nice
, chai = require ('chai')
, expect = chai.expect
, assert = chai.assert
/* ------------------------------------------------------------------------ */
module.exports = async (exchange) => {
const skippedExchanges = [
'bibox', // fetchFundingFees should be rewritten to fetchFundingFee
]
if (skippedExchanges.includes (exchange.id)) {
log (exchange.id, 'found in ignored exchanges, skipping fetchFundingFees...')
return
}
if (exchange.has.fetchFundingFees) {
// log ('fetching funding fees...')
const method = 'fetchFundingFees'
const fees = await exchange[method] ()
log.green (fees)
return fees
} else {
log ('fetching funding fees not supported')
}
}