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

-32
View File
@@ -1,32 +0,0 @@
'use strict'
// ----------------------------------------------------------------------------
const log = require ('ololog')
, ansi = require ('ansicolor').nice
, chai = require ('chai')
, expect = chai.expect
, assert = chai.assert
, testOrderBook = require ('./test.orderbook.js')
/* ------------------------------------------------------------------------ */
module.exports = async (exchange, symbol) => {
// log (symbol.green, 'fetching order book...')
const method = 'fetchOrderBook'
if (exchange.has[method]) {
let orderbook = await exchange[method] (symbol)
testOrderBook (exchange, orderbook, method, symbol)
return orderbook
} else {
log (method + '() not supported')
}
}