global.processDatetime

This commit is contained in:
Luis Fernando Molina committed 2018-03-08 17:15:29 +01:00
1 parent 1d00aaf6d2
commit bbcc247255
7 files changed
+123 -50

No files matched your search

+2 -4
View File
@@ -26,7 +26,6 @@
let openPositions = []; // These are the open positions the bot knows it made by itself.
let botContext;
let processDatetime;
let exchangeAPI;
return thisObject;
@@ -40,7 +39,6 @@
/* Store local values. */
botContext = pBotContext;
processDatetime = pProcessDatetime;
exchangeAPI = pExchangeAPI;
getPositionsAtExchange(onDone);
@@ -439,7 +437,7 @@
rate: pRate,
amountA: pAmountA,
amountB: pAmountB,
date: (processDatetime.valueOf()),
date: (global.processDatetime.valueOf()),
status: "open",
trades: []
};
@@ -501,7 +499,7 @@
rate: pNewRate,
amountA: pPosition.amountB * pNewRate,
amountB: pPosition.amountB,
date: (processDatetime.valueOf()),
date: (global.processDatetime.valueOf()),
status: "open",
trades: []
};