nefertiti-node
Version:
ES module to work with Nefertiti crypto trade bot.
63 lines (51 loc) • 1.6 kB
JavaScript
//* == Testing ==
// import * as functions from './src/functions/index.js';
// import * as apis from './src/api/index.js';
//* Imports/Exports
// console.log(helpers);
// console.log(functions);
// console.log(variables);
// console.log(apis);
//* Helpers
// console.log(helpers.getPlatform());
// console.log(helpers.getArch());
// helpers.downloadNefertiti();
//* Functions
// console.log(functions.filterMarketsByCurrency('gdax', 'ETH-'));
// console.log(functions.getAvailableMarkets('gdax'));
// const currentVersion = functions.getCurrentNefVersion();console.log(currentVersion);
// console.log(functions.getSupportedExchanges());
// functions.sendNotificationsTest(
// 'telegram',
// '1659001406:AAHE-6JAYVZWYixt_JOGpPddJxVZAdJ-8WE',
// '-548652278',
// );
// console.log(functions.updateNef());
// functions.startNefListenServer();
// functions.startNefListenServerAsync();
//* APIS
// apis.pingHub().then((results) => {
// console.log(results, results.length);
// });
// apis.pingBot(38701).then((results) => {
// console.log(results);
// });
// const api = [
// 'GDAX',
// '18de',
// '+m8B',
// 'jG%',
// ];
// const args = { market: 'BTC-USD', price: 10 };
// apis.postBot('sell', api, args).then((res) => {
// console.log(res);
// });
// apis.postBot('buy', api, args).then((res) => {
// console.log(res);
// });
// apis.updateBot(38702, { mult: '1.1' }).then((res) => {
// console.log(res);
// });
// const sellBot = await apis.pingBot(38701);
// console.log(sellBot);
// apis.deleteBot(38702);