From 7b972f65c132a45cb107d9186f858baca7f22c78 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 9 Feb 2018 16:06:51 +0100 Subject: [PATCH] logging improved --- .vs/AABruce/v15/.suo | Bin 28160 -> 27648 bytes One-Min-Daily-Candles/Interval.js | 8 +++++++- One-Min-Daily-Candles/run.js | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.vs/AABruce/v15/.suo b/.vs/AABruce/v15/.suo index 5a607e0ee1ea13d775ace241e53d4996b26e7bdc..d5b26ab71c6bd375a01d8bcb9b9fdf3d628e6b53 100644 GIT binary patch delta 1041 zcmcIgO-NKx6n^K@YxWl_#562@kI?F7u>k@!<#B1-Ue5NK1>-vcoP9 zm)bZS9Bzz=5``dJ&nq9rNO9QS?fa$c`X&NgW^i0{2XWhKb#68qcmp%;T5+F2Ub&m_ z!`=M0hnDC2=~qGo78o$3{Bk3*cV8KZyG2Fi$` zJoemmlnFwZzs|^4m8bEGWJ{Z+G+LWqPDflwHI=~^k02rWpzeWz zMBuMJ8dza)4VQXC-s3-AZ`#t|Uf0*W-?0?8)xmpZ1Cz-yd_Va~THWIHg~_+w>-Cn5 aGBeamSZN6%6n0~6F!U#P3U|jIW!Y~(Ojecv delta 1355 zcmbW1OKclu5XX1cCQjCAV<#?6>(~uZD1kWc`nhqcDqHo1+$JT)DuITFE1RSy1;^=9 z6jB_i7bGsk(*xqv^l{(-B3=~)7mUP#Tan-psUSgBajGH&T8RUS`G1?3R)}8stl!Se zel!05Gwb!z8ZG@upPrMQfkU+#&&ikQEwG~LklF^^U}JegqwQ?8o~90-b85@4{8?3|LfzQf1$F~J z=mDZ^L!7Y1V_Px5+uEZ)g<$Z3gfRSlKm`#H1wv*V2&qY+fngxNknbv`9j6dH2PVPu z;017+N$KK6w;Gs5bPl`@-T);q2W&md6MnwyexF`uqrE~ev4!i4Y;3EvPa(w##6oMn z|7wj(N{_GEm#|MD*_L%h>37=Bw~D&y{H08K{we!IxovRO207sX8LNxzGn?2UZk z9hN1j7t(|k<37gA(Jpg6@-(%jx3YT_zwOpI>>t5$3G-Oyc8ej@np1?$jSVNwudC9)Tmk4 zbgG3skC5a4Y5g5SgjQi^npz>~Oa3P8<4iVWpTCmm<6umIhEuHXbMkt;lLw+cTgzVA z+fl%CE=W1_P>>cSC`$-s_vEgF(h=z>I*sA?tw|}o1sD0Nksn-Kq=kUKq|xZi_$J6#}N%IMehEb$#R#P>3nSwB&KXfrboJ5`lk z{K?6dgeZEC-9*`R8b`S`3=m{297hl>Y{&q<8TE diff --git a/One-Min-Daily-Candles/Interval.js b/One-Min-Daily-Candles/Interval.js index 4fb5d8fcc..904e73648 100644 --- a/One-Min-Daily-Candles/Interval.js +++ b/One-Min-Daily-Candles/Interval.js @@ -396,7 +396,7 @@ Read the trades from Charly's Output and pack them into daily files with candles statusReport = JSON.parse(text); lastCandleFile = new Date(statusReport.lastFile.year + "-" + statusReport.lastFile.month + "-" + statusReport.lastFile.days + " " + "00:00" + GMT_SECONDS); - lastCandleClose = statusReport.lastFile.candleClose; + lastCandleClose = statusReport.candleClose; buildCandles(); @@ -443,6 +443,10 @@ Read the trades from Charly's Output and pack them into daily files with candles */ + const logText = "[INFO] 'findLastCandleCloseValue' - Begining of the market detected for market " + market.assetA + '_' + market.assetB + " . lastCandleClose = " + lastCandleClose; + logger.write(logText); + console.log(logText); + lastCandleFile = new Date(firstTradeFile.getUTCFullYear() + "-" + (firstTradeFile.getUTCMonth() + 1) + "-" + firstTradeFile.getUTCDay() + " " + "00:00" + GMT_SECONDS); lastCandleFile = new Date(lastCandleFile.valueOf() - ONE_DAY_IN_MILISECONDS); @@ -486,6 +490,7 @@ Read the trades from Charly's Output and pack them into daily files with candles const logText = "[INFO] 'findLastCandleCloseValue' - Trades found at " + filePath + " for market " + market.assetA + '_' + market.assetB + " . lastCandleClose = " + lastCandleClose; logger.write(logText); + console.log(logText); buildCandles(); @@ -493,6 +498,7 @@ Read the trades from Charly's Output and pack them into daily files with candles const logText = "[INFO] 'findLastCandleCloseValue' - No trades found at " + filePath + " for market " + market.assetA + '_' + market.assetB + " ."; logger.write(logText); + console.log(logText); loopStart(); diff --git a/One-Min-Daily-Candles/run.js b/One-Min-Daily-Candles/run.js index b0e3ca445..01dfd2c6d 100644 --- a/One-Min-Daily-Candles/run.js +++ b/One-Min-Daily-Candles/run.js @@ -77,7 +77,7 @@ try { const newPloniexHoleFixing = ONE_MIN_DAILY_CANDLES_MODULE.newPloniexHoleFixing(bot); let month = 6; - let year = 2016; + let year = 2015; newPloniexHoleFixing.initialize(year, month, onInitializeReady);