removing + "/" + bot.version

This commit is contained in:
Luis Fernando Molina committed 2018-03-08 19:51:06 +01:00
1 parent a3c0c7a859
commit 4d7ec4dee2
4 files changed
+9 -4

No files matched your search

Binary file not shown.
+6 -4
View File
@@ -7,6 +7,7 @@
const MODULE_NAME = "This.Bot";
const LOG_INFO = true;
const logger = DEBUG_MODULE.newDebugLog();
logger.fileName = MODULE_NAME;
logger.bot = bot;
@@ -52,7 +53,7 @@
return thisObject;
function initialize(pProcessDatetime, pPlatform, callBackFunction) {
function initialize(pPlatform, callBackFunction) {
try {
@@ -96,6 +97,7 @@
switch (err.result) {
case global.DEFAULT_OK_RESPONSE.result: {
logger.write("[INFO] start -> onDone -> Execution finished well. :-)");
callBackFunction(global.DEFAULT_OK_RESPONSE);
return;
}
@@ -168,7 +170,7 @@
any reason stops being updated.
*/
if (candle.begin < platform.processDatetime.valueOf() - 5 * 60 * 1000) {
if (candle.begin < global.processDatetime.valueOf() - 5 * 60 * 1000) {
logger.write("[WARN] start -> businessLogic -> Last one min candle more than 5 minutes old. Bot cannot operate with this delay. Retrying later.");
callBack('Retry Later');
@@ -198,7 +200,7 @@
AmountA = AmountB * rate;
platform.assistant.putPositionAtExchange("sell", rate, AmountA, AmountB, writeStatusAndContext, callBack);
platform.assistant.putPositionAtExchange("sell", rate, AmountA, AmountB, callBack);
}
} catch (err) {
@@ -283,7 +285,7 @@
/* Finally we move the order position to where we have just estimated is a better place. */
platform.assistant.movePositionAtExchange(pPosition, targetRate, writeStatusAndContext, callBack);
platform.assistant.movePositionAtExchange(pPosition, targetRate, callBack);
} catch (err) {
logger.write("[ERROR] start -> decideAboutSellPosition -> err = " + err.message);
Binary file not shown.
@@ -0,0 +1,3 @@
C:\Users\Luis\source\repos\Bots\AAMasters\AAMariam-Trading-Bot\obj\Debug\Project.njsprojResolveAssemblyReference.cache
C:\Users\Luis\source\repos\Bots\AAMasters\AAMariam-Trading-Bot\obj\Debug\Project.njsproj.CoreCompileInputs.cache
C:\Users\Luis\source\repos\Bots\AAMasters\AAMariam-Trading-Bot\bin\Microsoft.NodejsTools.WebRole.dll