From 978dc1d05c48f6f64b7e5b7043df17ec9ec626f9 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 9 Feb 2018 15:18:49 +0100 Subject: [PATCH] Bug corrected> file storage variable without bruce or charly --- .gitignore | 1 + .vs/AABruce/v15/.suo | Bin 25088 -> 27136 bytes One-Min-Daily-Candles/Interval.js | 24 +++++++++++++++++------- 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 1174e0d4e..2a931b7fa 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ .vs/AACharly/v15/.suo *.log *.cache +.vs/AABruce/v15/.suo diff --git a/.vs/AABruce/v15/.suo b/.vs/AABruce/v15/.suo index 10aa7ac233e7ff3aad9d384c6f9876fed125ccc9..6aefa7b0a40c0b7352dad6c7168ba35cc36e9fae 100644 GIT binary patch delta 2860 zcmds%T}+!*7{||ffzmQs+VRyPgO@_!McS?fY~}akUm#l7#-1zsTqzYdTEytb;h{GEiv)Jh}q@h5|slcetQe=#?vedA&tNW3P3TigI%BmJOoO? z!(hSRsMSF_fg9lS)E-C=s88Dska^&e-y`G7q{VmVyZ4shWEsZTNrUdB;V+!bF0VDG zH{p%>mjgQ&u%o*nO<)Jx3;t%S1xh(kK?R^!Evm-_MgKJY^8U$gywBcr(<$RQ0SZ{E zjJyf|6TNOx?Hnf?499vmPD#qr#TVHEme21RqDa)j1$=j1TWnCE1G*39R& zrO(zapRM=#Y}0+l+nJczc}~XbBdpa!%U4M)s-!ChFGZTJne?vb{^Rz|Qla$Hsp1}< z&*Fj?B-VFj%Xo$=o2VkY(x_mJJ40U{gmRnKl^WSh73RULQ?LhVz4&pX0~&WWFH1!1 zZ^(G*Z?cuvO8ZQDQ}GGmIg0F#8Mu#bD~aFp4GM)veQoX$F^HOmQNNQSB05p8aWRAH zg;2c+PJjv-g62kbr^Oc+KU8mhaQ3w`Z~btlP%+)0`JuMN{(}c(yr^R{&Z2D>=W^Ls zS>_fbQ$_47r)a7A0>!F6G54fLS&rWu{RI{$l;zR%s75Pl0ohb1C2I<3RddkwKu%n% zu&qWm7CSz@Zo60_-o2Wax+2M+QANIrO!~RHI^olT3RNq%ybumWNCc6>kT{Kcv}esVbJqbEHr9`W~X3n8+RoU;O*lW?8~F8V UjpN(Gl}1xF4GcTBSrT9Q1KH)n(EtDd delta 1580 zcmb`HO>7%g5XbjzY{%Z%#%YY>I&r*l6B-hyT{r$pNWqCIp~TevNFinvMF5EdYyJFYW@q2b z{@;76?+E>S@v%m?rW{_6Bv~X$65vj=*~B1qnOpY5Vx#bmAzyO8{Q9ix+SQ-MeS9ZC z6}cjwr-uBaLy{5L2WTTVCWfiebuj3Hs{kkH0dByv+A%t4S{ZOm!0HF%v}IrHJp?NP zd;n?9J71q#5L~r>eC1cJ8o~|TPZe856scj`TXldM-60X=x$*&|4uSzN1h}pr<9?um zVGsrfzz8@99srYI3_J)%0r%0l4!3>ul@W%rN*2Yl#6^ODi*SD`*gH8FXShgb@^RSw z`uxINlwY0;a30kZ)iMo-eo@xB%IMQ@mcco29;|>>kOvpQGoU~>dJb$93Wl>}dkX%i zGF6-vah4j+s#v13tLi+1Ft0CPhN6>4u~=9IdQVZEoi4c>`bJSb97w`Rfp#}EW9WVZ(#GV!WxWDvT(-(f;BN z8lqPY_0wlL754F6Ta&HE;BO*9jlmNR!8^0B{Wz6^x{X)lHQD@QV$ziYy+F?nWnY1h@|#Ir^nV(j<+(N(Je9s+*#T`+MNGe#oLiQl(nlOPfc+ zjyY*gnwMUc%G8X9X+-Ypxs1G+6i0O4tR~iEDrQ5Nm#&_8*i28)$aH&gR!L1BizVic zJr!YiY;>boHPhLeO!YHfb0-&(jag#R4+#8QeLC&{D@i0rdxf`PVO4oApK;T()m?$`=SpA n?nRxJQ*K&|zCah&-*5XvG^B<}ligHP)8tl 0) { /* Candle open and close Calculations */ @@ -683,6 +691,8 @@ Read the trades from Charly's Output and pack them into daily files with candles volumes.push(volume); + nextDate(); + } catch (err) { const logText = "[ERR] 'buildCandles' - Empty or corrupt trade file found at " + filePath + " for market " + market.assetA + '_' + market.assetB + " . Skipping this Market. "; @@ -742,11 +752,11 @@ Read the trades from Charly's Output and pack them into daily files with candles let filePath = EXCHANGE_NAME + "/Output/" + CANDLES_FOLDER_NAME + '/' + CANDLES_ONE_MIN + '/' + dateForPath; - utilities.createFolderIfNeeded(filePath, azureFileStorage, onFolderCreated); + utilities.createFolderIfNeeded(filePath, bruceAzureFileStorage, onFolderCreated); function onFolderCreated() { - azureFileStorage.createTextFile(filePath, fileName, fileContent + '\n', onFileCreated); + bruceAzureFileStorage.createTextFile(filePath, fileName, fileContent + '\n', onFileCreated); function onFileCreated() { @@ -787,11 +797,11 @@ Read the trades from Charly's Output and pack them into daily files with candles let filePath = EXCHANGE_NAME + "/Output/" + VOLUMES_FOLDER_NAME + '/' + VOLUMES_ONE_MIN + '/' + dateForPath; - utilities.createFolderIfNeeded(filePath, azureFileStorage, onFolderCreated); + utilities.createFolderIfNeeded(filePath, bruceAzureFileStorage, onFolderCreated); function onFolderCreated() { - azureFileStorage.createTextFile(filePath, fileName, fileContent + '\n', onFileCreated); + bruceAzureFileStorage.createTextFile(filePath, fileName, fileContent + '\n', onFileCreated); function onFileCreated() { @@ -842,7 +852,7 @@ Read the trades from Charly's Output and pack them into daily files with candles let reportFilePath = EXCHANGE_NAME + "/Processes/" + bot.process + "/" + year + "/" + month; - utilities.createFolderIfNeeded(reportFilePath, azureFileStorage, onFolderCreated); + utilities.createFolderIfNeeded(reportFilePath, bruceAzureFileStorage, onFolderCreated); function onFolderCreated() { @@ -862,7 +872,7 @@ Read the trades from Charly's Output and pack them into daily files with candles let fileContent = JSON.stringify(report); - azureFileStorage.createTextFile(reportFilePath, fileName, fileContent + '\n', onFileCreated); + bruceAzureFileStorage.createTextFile(reportFilePath, fileName, fileContent + '\n', onFileCreated); function onFileCreated() {