diff --git a/.vs/AAOlivia-Indicator-Bot/v15/.suo b/.vs/AAOlivia-Indicator-Bot/v15/.suo
index 8eb844d70..0efdaa32a 100644
Binary files a/.vs/AAOlivia-Indicator-Bot/v15/.suo and b/.vs/AAOlivia-Indicator-Bot/v15/.suo differ
diff --git a/Multi-Period-Market/Interval.js b/Multi-Period-Market/User.bot.js
similarity index 97%
rename from Multi-Period-Market/Interval.js
rename to Multi-Period-Market/User.bot.js
index 897b2b009..90c75693f 100644
--- a/Multi-Period-Market/Interval.js
+++ b/Multi-Period-Market/User.bot.js
@@ -1,4 +1,4 @@
-exports.newInterval = function newInterval(BOT, UTILITIES, AZURE_FILE_STORAGE, DEBUG_MODULE, POLONIEX_CLIENT_MODULE, FILE_STORAGE, STATUS_REPORT) {
+exports.newUserBot = function newUserBot(BOT, UTILITIES, DEBUG_MODULE, FILE_STORAGE, STATUS_REPORT) {
const FULL_LOG = true;
const LOG_FILE_CONTENT = false;
@@ -9,7 +9,7 @@
const GMT_MILI_SECONDS = '.000 GMT+0000';
const ONE_DAY_IN_MILISECONDS = 24 * 60 * 60 * 1000;
- const MODULE_NAME = "Interval";
+ const MODULE_NAME = "UserBot";
const EXCHANGE_NAME = "Poloniex";
const EXCHANGE_ID = 1;
@@ -31,9 +31,9 @@
start: start
};
- let charlyAzureFileStorage = AZURE_FILE_STORAGE.newAzureFileStorage(bot);
- let bruceAzureFileStorage = AZURE_FILE_STORAGE.newAzureFileStorage(bot);
- let oliviaAzureFileStorage = AZURE_FILE_STORAGE.newAzureFileStorage(bot);
+ let charlyAzureFileStorage = FILE_STORAGE.newAzureFileStorage(bot);
+ let bruceAzureFileStorage = FILE_STORAGE.newAzureFileStorage(bot);
+ let oliviaAzureFileStorage = FILE_STORAGE.newAzureFileStorage(bot);
let utilities = UTILITIES.newUtilities(bot);
@@ -48,7 +48,7 @@
/* IMPORTANT NOTE:
- We are ignoring in this Interval the received Year and Month. This interval is not depending on Year Month since it procecess the whole market at once.
+ We are ignoring in this UserBot the received Year and Month. This interval is not depending on Year Month since it procecess the whole market at once.
*/
@@ -84,9 +84,6 @@ Read the candles and volumes from Bruce and produce a single Index File for Mark
if (FULL_LOG === true) { logger.write("[INFO] start -> Entering function."); }
- let nextIntervalExecution = false; // This tell weather the Interval module will be executed again or not. By default it will not unless some hole have been found in the current execution.
- let nextIntervalLapse; // With this we can request the next execution wait time.
-
let market = global.MARKET;
/* Context Variables */
@@ -426,8 +423,6 @@ Read the candles and volumes from Bruce and produce a single Index File for Mark
if (lastCandleFile.valueOf() > maxCandleFile.valueOf()) {
- nextIntervalExecution = true; // we request a new interval execution.
-
if (FULL_LOG === true) { logger.write("[INFO] start -> buildCandles -> advanceTime -> Head of the market found @ " + lastCandleFile.getUTCFullYear() + "/" + (lastCandleFile.getUTCMonth() + 1) + "/" + lastCandleFile.getUTCDate() + "."); }
callBackFunction(global.DEFAULT_OK_RESPONSE); // Here is where we finish processing and wait for the platform to run this module again.
@@ -899,7 +894,6 @@ Read the candles and volumes from Bruce and produce a single Index File for Mark
callBackFunction(global.DEFAULT_FAIL_RESPONSE);
}
}
-
}
catch (err) {
logger.write("[ERROR] start -> err = " + err.message);
diff --git a/Project.njsproj b/Project.njsproj
index 0e98ad2af..88157af1a 100644
--- a/Project.njsproj
+++ b/Project.njsproj
@@ -22,7 +22,7 @@
-
+