Bug Fixed Live Trading

This commit is contained in:
Luis Fernando Molina committed 2020-10-02 12:22:17 +02:00
1 parent 40736120cb
commit 1647e50355
3 files changed
+64 -13

No files matched your search

+5 -3
View File
@@ -197,7 +197,7 @@
type: 'Time Range',
config: {
initialDatetime: (new Date()).valueOf(),
finalDatetime: (new Date()).valueOf()
finalDatetime: (new Date()).valueOf() + global.ONE_YEAR_IN_MILISECONDS
}
}
} else {
@@ -428,10 +428,12 @@
}
}
function sessionHeartBeat(processingDate) {
function sessionHeartBeat(processingDate, percentage, status) {
let event = {
seconds: (new Date()).getSeconds(),
processingDate: processingDate
processingDate: processingDate,
percentage: percentage,
status: status
}
global.EVENT_SERVER_CLIENT.raiseEvent(bot.sessionKey, 'Heartbeat', event)