Ready to Debug Multi Period Market just moved to Alpha

This commit is contained in:
Luis Fernando Molina committed 2018-03-14 19:52:02 +01:00
1 parent 99d2bf36e1
commit 59e67d27eb
3 files changed
+7 -13

No files matched your search

Binary file not shown.
@@ -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);
+1 -1
View File
@@ -22,7 +22,7 @@
<Content Include="package.json" />
<Content Include="README.md" />
<Compile Include="Multi-Period-Daily\Interval.js" />
<Compile Include="Multi-Period-Market\Interval.js" />
<Compile Include="Multi-Period-Market\User.bot.js" />
<Content Include="logs\Dummy File.txt" />
<Content Include="obj\Debug\AABruce.njsproj.FileListAbsolute.txt" />
<Content Include="obj\Debug\AACarol.njsproj.FileListAbsolute.txt" />