From a505fec2431a7d07b91e7fb608aff804f4f537db Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 19 Mar 2018 15:48:21 +0100 Subject: [PATCH] Partially Debugged Hole Fixing --- .vs/AACharly-Extraction-Bot/v15/.suo | Bin 31232 -> 30208 bytes Poloniex-Hole-Fixing/User.bot.js | 11 ++++++----- this.bot.config.json | 8 ++++---- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.vs/AACharly-Extraction-Bot/v15/.suo b/.vs/AACharly-Extraction-Bot/v15/.suo index 3f9e652db344074d2bd368c447c0cbfb50b9c506..c2270a0745621c47eecb781ed63b122c96e8d5b8 100644 GIT binary patch delta 1777 zcmb_cZAep57(VCj!<*gRrlm8IX;W(%`B9?ivfZ_bqa<}}wIb+K`dSt?wXA3sRFp;T zg&>G1rG5%}{|FH-`hb2(1wnrb`c)xhpg}~|`_6l#D2q`Cp8KBjoUi9R=RG$z!DD0m z@=7ib)|Lu#S;K+d=SH6KMU1gTK6IJ8_$inaPV*QXHLQXA=5l@jCJjq#B^)pt@fAx3 zMk`_tA`LNx+$@Ym2pggTLF4o?)!STUvLLw_u8O7kbG7bDEmmQy*6NuU2b*(vT!_fZ zyH&@|{8d|8UL9$hr!7Exl1?K+*Qx8EsO!wu#*=o^iyB=fGghWGW@+7j)R=BG(ex=b zBmF(^-6qB*zev8&KJcWVkVl|hI?4CLq_obGWJ&4w-hI$+xiD1doXlG`EMx&rmYK5AhyG7ElU^DcqlY%|p$ISxmipLrRyFKLwMf+#2S>84U_2ts8C(-iW)Gp7QweI=AXxevhYMo;r~&@jkmzWNj#8AKL|Djmigr zcMig7SCBKf=W?sc$_@eFsEehec^-9S6*t3xqVy+xLSH?H>$}{%X~^-w@XK3KCyFGY zuh z(^kd2>;x-e0dy~d*v<~)_c)vkb;Gu>9qbWDUx|>Cb>U7EpZVPQFtu~Dam-fwPa4=A zXjWpd)jJQI$_Id*=iyb*23rFQ@sMdS-y`!MM>y4S&m*1{q=O`jnAneza^D9{%H!W9 znjk=?do`xt=ByZ>o`wJS#4W7nY4gq-{Rbm0{Yq4ThCqd8@BE~_9(OT(3=TPeXYv2G LJ0-6%tx51Ve`9l< delta 1463 zcmcJO{Y#Tk6vyv%!=djB2Cp;n_%WDP z6?&7fJATQKgl!$N3Q0uf@E1M$)rg2BBSs_zNkuY{*tF!=Vw{O&Atodn$w4g0nA;$& zM_-Om?%bH$tgf0LP#2<~aO=4&cy&#;Zaz4P^{m0ZXgz~}t|dMzV;yFz5t=(@D=|(( z#@uCMI{G}s9E~$1sx2Se2}mwnR2S!M!d4k#LuiK0=qnJ)tVF*BnQ$ApoS^2X6`nB5 zWznT2O(;7m>rvUwyhpaO$j3 zBB4SH%U59OYVpJ&^9xJ(j zC^}X# getContextVariables -> Undefined Last File. -> reportKey = " + reportKey); + logger.write("[WARN] start -> getContextVariables -> Undefined Last File. -> reportKey = " + reportKey); let customOK = { result: global.CUSTOM_OK_RESPONSE.result, @@ -203,7 +203,7 @@ What is the lastFile pointer? thisReport = dependencies.statusReports.get(reportKey).file; if (thisReport.lastFile === undefined) { - logger.write("[ERROR] start -> getContextVariables -> Undefined Last File. -> reportKey = " + reportKey); + 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 = { @@ -248,7 +248,7 @@ What is the lastFile pointer? return; } - reportKey = "AAMasters" + "-" + "AAOlivia" + "-" + "Poloniex-Hole-Fixing" + "-" + "dataSet.V1" + "-" + year + "-" + month; + reportKey = "AAMasters" + "-" + "AACharly" + "-" + "Poloniex-Hole-Fixing" + "-" + "dataSet.V1" + "-" + year + "-" + month; holeFixingStatusReport = dependencies.statusReports.get(reportKey).file; if (holeFixingStatusReport.lastFile === undefined) { @@ -352,6 +352,7 @@ What is the lastFile pointer? /* This mean we reached the forward end of the market */ if (FULL_LOG === true) { logger.write("[INFO] start -> findNextHole -> readNextFile -> Head of the market reached at date = " + date.toUTCString()); } + if (FULL_LOG === true) { logger.write("[INFO] start -> findNextHole -> readNextFile -> lastLiveTradeFile = " + lastLiveTradeFile.toUTCString()); } writeStatusReport(currentDatetime, currentTradeId, false, true, onStatusReportWritten); diff --git a/this.bot.config.json b/this.bot.config.json index c85870772..c6d652afb 100644 --- a/this.bot.config.json +++ b/this.bot.config.json @@ -93,14 +93,14 @@ "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", + "run": "false", "minYear": "2014", "maxYear": "2018" }, "oneMonth": { - "run": "false", - "year": "", - "month": "" + "run": "true", + "year": "2018", + "month": "03" }, "noTime": { "run": "false"