UNPKG

ccxt-look

Version:

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

24 lines (14 loc) 548 B
'use strict' // ---------------------------------------------------------------------------- const testBalance = require ('./test.balance.js') // ---------------------------------------------------------------------------- module.exports = async (exchange) => { if (!(exchange.has.fetchBalance)) { console.log (exchange.id, ' does not have fetchBalance') return } console.log ('fetching balance...') const response = await exchange.fetchBalance () testBalance (exchange, response) return response }