bot18
Version:
A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f
12 lines • 382 B
JavaScript
module.exports = function container (get, set) {
return function closeBuffet (cb) {
var buffet_instance = get('middleware.buffet_instance')
if (buffet_instance) {
get('console').log('motley-buffet: closing buffet...')
buffet_instance.close()
get('console').log('motley-buffet: closed buffet.')
setImmediate(cb)
}
else setImmediate(cb)
}
}