diff --git a/.vs/AAOlivia-Indicator-Bot/v15/.suo b/.vs/AAOlivia-Indicator-Bot/v15/.suo index ff884a21d..c6767da42 100644 Binary files a/.vs/AAOlivia-Indicator-Bot/v15/.suo and b/.vs/AAOlivia-Indicator-Bot/v15/.suo differ diff --git a/Multi-Period-Daily/User.bot.js b/Multi-Period-Daily/User.bot.js index 8fc1019ee..65481232c 100644 --- a/Multi-Period-Daily/User.bot.js +++ b/Multi-Period-Daily/User.bot.js @@ -113,7 +113,14 @@ Read the candles and volumes from Bruce and produce a file for each day and for if (thisReport.lastFile === undefined) { logger.write("[WARN] start -> getContextVariables -> Undefined Last File. -> reportKey = " + reportKey); - callBackFunction(global.DEFAULT_FAIL_RESPONSE); + logger.write("[HINT] start -> getContextVariables -> It is too early too run this process since the trade history of the market is not there yet."); + + let customOK = { + result: global.CUSTOM_OK_RESPONSE.result, + message: "Dependency does not exist." + } + logger.write("[WARN] start -> getContextVariables -> customOK = " + customOK.message); + callBackFunction(customOK); return; } @@ -125,7 +132,13 @@ Read the candles and volumes from Bruce and produce a file for each day and for if (thisReport.lastFile === undefined) { logger.write("[WARN] start -> getContextVariables -> Undefined Last File. -> reportKey = " + reportKey); - callBackFunction(global.DEFAULT_FAIL_RESPONSE); + + let customOK = { + result: global.CUSTOM_OK_RESPONSE.result, + message: "Dependency not ready." + } + logger.write("[WARN] start -> getContextVariables -> customOK = " + customOK.message); + callBackFunction(customOK); return; } diff --git a/Multi-Period-Market/User.bot.js b/Multi-Period-Market/User.bot.js index d2ebf01cb..a95b22128 100644 --- a/Multi-Period-Market/User.bot.js +++ b/Multi-Period-Market/User.bot.js @@ -112,8 +112,15 @@ Read the candles and volumes from Bruce and produce a single Index File for Mark thisReport = dependencies.statusReports.get(reportKey).file; if (thisReport.lastFile === undefined) { - logger.write("[ERROR] start -> getContextVariables -> Undefined Last File. -> reportKey = " + reportKey); - callBackFunction(global.DEFAULT_FAIL_RESPONSE); + logger.write("[WARN] start -> getContextVariables -> Undefined Last File. -> reportKey = " + reportKey); + logger.write("[HINT] start -> getContextVariables -> It is too early too run this process since the trade history of the market is not there yet."); + + let customOK = { + result: global.CUSTOM_OK_RESPONSE.result, + message: "Dependency does not exist." + } + logger.write("[WARN] start -> getContextVariables -> customOK = " + customOK.message); + callBackFunction(customOK); return; } @@ -125,7 +132,13 @@ Read the candles and volumes from Bruce and produce a single Index File for Mark if (thisReport.lastFile === undefined) { logger.write("[ERROR] start -> getContextVariables -> Undefined Last File. -> reportKey = " + reportKey); - callBackFunction(global.DEFAULT_FAIL_RESPONSE); + + let customOK = { + result: global.CUSTOM_OK_RESPONSE.result, + message: "Dependency not ready." + } + logger.write("[WARN] start -> getContextVariables -> customOK = " + customOK.message); + callBackFunction(customOK); return; }