UNPKG

bot18

Version:

A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f

21 lines (16 loc) 404 B
'use strict' var argv = require('minimist')(process.argv.slice(2)) var Client = require('../index') var args = JSON.parse(decodeURI(argv._)) var client = new Client(args) client.on('error', function (error) { console.warn(new Error(error)) process.exit() }) client.on('online', function () { console.log({ rid: client.connection.rid, sid: client.connection.sid }) process.exit() })