From 93631af7c246aa5171abc1b7be584383ad14c081 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Wed, 25 Nov 2020 14:17:20 +0100 Subject: [PATCH] Cleaning --- .../this.bot.config.json | 92 ------------------- TaskServer/Root.js | 11 +-- 2 files changed, 1 insertion(+), 102 deletions(-) diff --git a/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Exchange-Raw-Data-Sensor-Bot/this.bot.config.json b/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Exchange-Raw-Data-Sensor-Bot/this.bot.config.json index fcfcc6eaa..a24202b5e 100644 --- a/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Exchange-Raw-Data-Sensor-Bot/this.bot.config.json +++ b/Projects/Superalgos/Bots-Plotters-Code/Masters/bots/Exchange-Raw-Data-Sensor-Bot/this.bot.config.json @@ -39,98 +39,6 @@ "process": "Live-Trades" } ] - }, - { - "name": "Historic-Trades", - "description": "Retrieves and saves the historical trades in batches going backwards from the current time until reaching the begining of the market.", - "startMode": { - "allMonths": { - "run": "false", - "minYear": "2014", - "maxYear": "2020" - }, - "oneMonth": { - "run": "true", - "year": "2018", - "month": "01" - }, - "noTime": { - "run": "false" - }, - "fixedInterval": { - "run": "false", - "interval": 0 - } - }, - "deadWaitTime": 0, - "normalWaitTime": 60000, - "retryWaitTime": 10000, - "sleepWaitTime": 3600000, - "comaWaitTime": 86400000, - "statusDependencies": [ - { - "dataMine": "Masters", - "bot": "Exchange-Raw-Data", - "process": "Live-Trades" - }, - { - "dataMine": "Masters", - "bot": "Exchange-Raw-Data", - "process": "Historic-Trades" - } - ] - }, - { - "name": "Hole-Fixing", - "description": "Scans the trades saved by the Live Trades and Historic Trades processes searching for missing records. Once a hole is found on the data set, it patches it by retrieving the missing records from the exchange.", - "startMode": { - "allMonths": { - "run": "true", - "minYear": "2019", - "maxYear": "2019" - }, - "oneMonth": { - "run": "false", - "year": "2019", - "month": "10" - }, - "noTime": { - "run": "false" - }, - "fixedInterval": { - "run": "false", - "interval": 0 - } - }, - "deadWaitTime": 0, - "normalWaitTime": 0, - "retryWaitTime": 10000, - "sleepWaitTime": 3600000, - "comaWaitTime": 86400000, - "statusDependencies": [ - { - "dataMine": "Masters", - "bot": "Exchange-Raw-Data", - "process": "Live-Trades", - "waitUntilNextUpdate": true - }, - { - "dataMine": "Masters", - "bot": "Exchange-Raw-Data", - "process": "Historic-Trades" - }, - { - "dataMine": "Masters", - "bot": "Exchange-Raw-Data", - "process": "Hole-Fixing", - "dataSetSection": "Month" - }, - { - "dataMine": "Masters", - "bot": "Exchange-Raw-Data", - "process": "Hole-Fixing" - } - ] } ] } diff --git a/TaskServer/Root.js b/TaskServer/Root.js index 7a2391c3e..a50df343c 100644 --- a/TaskServer/Root.js +++ b/TaskServer/Root.js @@ -61,16 +61,6 @@ function start(processIndex) { try { - - /* Now we will run according to what we see at the config file. */ - - /* Small Function to fix numbers into strings in a cool way. */ - - function pad(str, max) { - str = str.toString(); - return str.length < max ? pad("0" + str, max) : str; - } - /* Process Loops Declarations. */ const INDICATOR_BOT_MODULE = require('./IndicatorBot'); @@ -111,6 +101,7 @@ processInstance.referenceParent.parentNode.config.repo + // bot '/this.bot.config.json' + console.log('Reading Bot Config File al: ' + filePath) fileStorage.getTextFile(filePath, onFileReceived); function onFileReceived(err, text) {