From 1cf922aa24e49c26546c8b977541bb24fa52cb51 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 2 Dec 2020 09:15:19 +0100 Subject: [PATCH] STATUS REPORT cleaned --- .../Exchange-Raw-Data-Sensor-Bot/Historic-OHLCVs/User.Bot.js | 2 +- .../Exchange-Raw-Data-Sensor-Bot/Historic-Trades/User.Bot.js | 2 +- .../bots/Webhooks-Sensor-Bot/Check-Webhook/User.Bot.js | 2 +- Projects/Superalgos/TS/Process-Modules/StatusDependencies.js | 2 +- TaskServer/IndicatorBot.js | 3 +-- TaskServer/SensorBot.js | 5 ++--- TaskServer/TradingBot.js | 3 +-- 7 files changed, 8 insertions(+), 11 deletions(-) diff --git a/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Exchange-Raw-Data-Sensor-Bot/Historic-OHLCVs/User.Bot.js b/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Exchange-Raw-Data-Sensor-Bot/Historic-OHLCVs/User.Bot.js index aecfee6be..ea8093266 100644 --- a/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Exchange-Raw-Data-Sensor-Bot/Historic-OHLCVs/User.Bot.js +++ b/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Exchange-Raw-Data-Sensor-Bot/Historic-OHLCVs/User.Bot.js @@ -1,5 +1,5 @@  -exports.newUserBot = function (processIndex, COMMONS, FILE_STORAGE, STATUS_REPORT, EXCHANGE_API) { +exports.newUserBot = function (processIndex, COMMONS, FILE_STORAGE, EXCHANGE_API) { const FULL_LOG = true; const GMT_SECONDS = ':00.000 GMT+0000'; diff --git a/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Exchange-Raw-Data-Sensor-Bot/Historic-Trades/User.Bot.js b/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Exchange-Raw-Data-Sensor-Bot/Historic-Trades/User.Bot.js index 62cb17bb4..fa9f627c8 100644 --- a/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Exchange-Raw-Data-Sensor-Bot/Historic-Trades/User.Bot.js +++ b/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Exchange-Raw-Data-Sensor-Bot/Historic-Trades/User.Bot.js @@ -1,5 +1,5 @@  -exports.newUserBot = function (processIndex, COMMONS, FILE_STORAGE, STATUS_REPORT, EXCHANGE_API) { +exports.newUserBot = function (processIndex, COMMONS, FILE_STORAGE, EXCHANGE_API) { const FULL_LOG = true; const LOG_FILE_CONTENT = false; diff --git a/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Webhooks-Sensor-Bot/Check-Webhook/User.Bot.js b/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Webhooks-Sensor-Bot/Check-Webhook/User.Bot.js index b3f6dbb70..62dd2f788 100644 --- a/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Webhooks-Sensor-Bot/Check-Webhook/User.Bot.js +++ b/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Webhooks-Sensor-Bot/Check-Webhook/User.Bot.js @@ -1,5 +1,5 @@  -exports.newUserBot = function (processIndex, COMMONS, FILE_STORAGE, STATUS_REPORT, EXCHANGE_API) { +exports.newUserBot = function (processIndex, COMMONS, FILE_STORAGE, EXCHANGE_API) { const FULL_LOG = true; const LOG_FILE_CONTENT = false; diff --git a/Projects/Superalgos/TS/Process-Modules/StatusDependencies.js b/Projects/Superalgos/TS/Process-Modules/StatusDependencies.js index bbf16bc02..2846c34f4 100644 --- a/Projects/Superalgos/TS/Process-Modules/StatusDependencies.js +++ b/Projects/Superalgos/TS/Process-Modules/StatusDependencies.js @@ -1,4 +1,4 @@ -exports.newSuperalgosProcessModulesStatusDependencies = function (processIndex, STATUS_REPORT, PROCESS_OUTPUT) { +exports.newSuperalgosProcessModulesStatusDependencies = function (processIndex, PROCESS_OUTPUT) { const MODULE_NAME = "Status Dependencies"; diff --git a/TaskServer/IndicatorBot.js b/TaskServer/IndicatorBot.js index e0c4fe2f6..5ae4b6cc4 100644 --- a/TaskServer/IndicatorBot.js +++ b/TaskServer/IndicatorBot.js @@ -105,7 +105,6 @@ TS.projects.superalgos.functionLibraries.processFunctions.processHeartBeat(processIndex) /* We define here all the modules that the rest of the infraestructure, including the bots themselves can consume. */ - const STATUS_REPORT = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'StatusReport'); const STATUS_DEPENDENCIES = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'StatusDependencies'); const DATA_DEPENDENCIES = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'DataDependencies'); const DATA_SET = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'DataSet'); @@ -232,7 +231,7 @@ function initializeStatusDependencies() { try { - statusDependencies = STATUS_DEPENDENCIES.newSuperalgosProcessModulesStatusDependencies(processIndex, STATUS_REPORT, PROCESS_OUTPUT); + statusDependencies = STATUS_DEPENDENCIES.newSuperalgosProcessModulesStatusDependencies(processIndex, PROCESS_OUTPUT); statusDependencies.initialize(onInizialized); function onInizialized(err) { diff --git a/TaskServer/SensorBot.js b/TaskServer/SensorBot.js index 1cfdee5d7..4d9b2a9da 100644 --- a/TaskServer/SensorBot.js +++ b/TaskServer/SensorBot.js @@ -110,7 +110,6 @@ TS.projects.superalgos.functionLibraries.processFunctions.processHeartBeat(processIndex) /* We define here all the modules that the rest of the infraestructure, including the bots themselves can consume. */ - const STATUS_REPORT = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'StatusReport'); const STATUS_DEPENDENCIES = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'StatusDependencies'); const PROCESS_EXECUTION_EVENTS = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'ProcessExecutionEvents'); const PROCESS_OUTPUT = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'ProcessOutput'); @@ -235,7 +234,7 @@ function initializeStatusDependencies() { try { - statusDependencies = STATUS_DEPENDENCIES.newSuperalgosProcessModulesStatusDependencies(processIndex, STATUS_REPORT, PROCESS_OUTPUT); + statusDependencies = STATUS_DEPENDENCIES.newSuperalgosProcessModulesStatusDependencies(processIndex, PROCESS_OUTPUT); statusDependencies.initialize(onInizialized); function onInizialized(err) { @@ -283,7 +282,7 @@ function initializeUserBot() { try { - usertBot = USER_BOT_MODULE.newUserBot(processIndex, COMMONS_MODULE, FILE_STORAGE, STATUS_REPORT, exchangeAPI); + usertBot = USER_BOT_MODULE.newUserBot(processIndex, COMMONS_MODULE, FILE_STORAGE, exchangeAPI); usertBot.initialize(statusDependencies, onInizialized); function onInizialized(err) { diff --git a/TaskServer/TradingBot.js b/TaskServer/TradingBot.js index 5589eacad..bca255bc0 100644 --- a/TaskServer/TradingBot.js +++ b/TaskServer/TradingBot.js @@ -69,7 +69,6 @@ TS.projects.superalgos.functionLibraries.processFunctions.processHeartBeat(processIndex, undefined, undefined, "Running...") /* We define here all the modules that the rest of the infraestructure, including the bots themselves can consume. */ - const STATUS_REPORT = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'StatusReport'); const STATUS_DEPENDENCIES = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'StatusDependencies'); const DATA_DEPENDENCIES = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'DataDependencies'); const DATA_SET = require(TS.projects.superalgos.globals.nodeJSConstants.REQUIRE_ROOT_DIR + 'DataSet'); @@ -219,7 +218,7 @@ function initializeStatusDependencies() { try { - statusDependencies = STATUS_DEPENDENCIES.newSuperalgosProcessModulesStatusDependencies(processIndex, STATUS_REPORT, PROCESS_OUTPUT); + statusDependencies = STATUS_DEPENDENCIES.newSuperalgosProcessModulesStatusDependencies(processIndex, PROCESS_OUTPUT); statusDependencies.initialize(onInizialized); function onInizialized(err) {