UNPKG

nefertiti-node

Version:

ES module to work with Nefertiti crypto trade bot.

23 lines (19 loc) 664 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = getSupportedExchanges; var _child_process = require("child_process"); var _variables = require("./variables.js"); /** * @function getSupportedExchanges * @description Check which exchanges are currently supported by Nefertiti * @returns {array} - an array of objects of each supported exchange * @example * const availableExchanges = getSupportedExchanges(); * console.log(availableExchanges) */ function getSupportedExchanges() { const stdout = (0, _child_process.execFileSync)(_variables.executable, ['exchanges']); return JSON.parse(stdout); }