Trading Engine in sequence
This commit is contained in:
1 parent
ab9e9e55af
commit
ccbc1665f4
6 files changed
+22
-140
No files matched your search
+1
-1
@@ -170,7 +170,7 @@
|
||||
function onFileReceived(err, text) {
|
||||
|
||||
if (err.result !== global.DEFAULT_OK_RESPONSE.result) {
|
||||
logger.write(MODULE_NAME, "[ERROR] initialize -> getExecutionHistory -> onFileReceived -> err = "+ err);
|
||||
logger.write(MODULE_NAME, "[ERROR] initialize -> getExecutionHistory -> onFileReceived -> err = "+ JSON.stringify(err));
|
||||
callBack(err);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -857,6 +857,7 @@
|
||||
console.log(logDisplace + "Root : [ERROR] start -> findProcess -> runTradingEngine -> onInitializeReady -> whenStartFinishes -> Bot execution finished with errors. Please check the logs.");
|
||||
logger.persist();
|
||||
}
|
||||
callback(err, pBotConfig.devTeam + "." + pBotConfig.codeName + "." + pBotConfig.process)
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
require('dotenv').config()
|
||||
const strategy = require('./Integrations/Strategy')
|
||||
const sequenceList = require('./sequence');
|
||||
|
||||
global.SHALL_BOT_STOP = false
|
||||
global.AT_BREAKPOINT = false // This is used only when running at the browser.
|
||||
@@ -156,7 +155,7 @@ async function readExecutionConfiguration() {
|
||||
backtest: backtest,
|
||||
competition: competition
|
||||
}
|
||||
} else if (process.env.TYPE === 'Indicator' || process.env.TYPE === 'Sensor') {
|
||||
} else if (process.env.TYPE === 'Indicator' || process.env.TYPE === 'Sensor' || process.env.TYPE === 'Trading-Engine') {
|
||||
let allMonths = {
|
||||
run: "false",
|
||||
minYear: process.env.MIN_YEAR,
|
||||
|
||||
@@ -36,6 +36,8 @@
|
||||
try {
|
||||
if (FULL_LOG === true) { parentLogger.write(MODULE_NAME, "[INFO] initialize -> Entering function."); }
|
||||
|
||||
bot.startMode = 'Live' // The Trading Engine does not support different start modes. Only live for background compatibility.
|
||||
|
||||
UI_COMMANDS = pUI_COMMANDS;
|
||||
processConfig = pProcessConfig;
|
||||
|
||||
|
||||
@@ -131,6 +131,17 @@
|
||||
"endYear": 2021,
|
||||
"month": 1
|
||||
},
|
||||
{
|
||||
"devTeam": "user",
|
||||
"bot": "simulator-user",
|
||||
"mode": "noTime",
|
||||
"resumeExecution": true,
|
||||
"type": "Trading-Engine",
|
||||
"exchangeName": "Poloniex",
|
||||
"process": "Multi-Period-Daily",
|
||||
"beginDatetime": "2019-08-01T08:00:00.000Z",
|
||||
"timePeriod": "05-min"
|
||||
},
|
||||
{
|
||||
"devTeam": "AAVikings",
|
||||
"bot": "AAGauss",
|
||||
@@ -177,16 +188,5 @@
|
||||
"beginDatetime": "2019-08-01T08:00:00.000Z",
|
||||
"timePeriod": "05-min",
|
||||
"dataSet": "Multi-Period-Daily"
|
||||
},
|
||||
{
|
||||
"devTeam": "user",
|
||||
"bot": "simulator-bot-user",
|
||||
"mode": "noTime",
|
||||
"resumeExecution": true,
|
||||
"type": "Indicator",
|
||||
"exchangeName": "Poloniex",
|
||||
"process": "Multi-Period-Daily",
|
||||
"beginDatetime": "2019-08-01T08:00:00.000Z",
|
||||
"timePeriod": "05-min"
|
||||
}
|
||||
]
|
||||
+6
-126
@@ -1,134 +1,14 @@
|
||||
[
|
||||
|
||||
{
|
||||
"devTeam": "AAMasters",
|
||||
"bot": "AACharly",
|
||||
"devTeam": "user",
|
||||
"bot": "simulator-user",
|
||||
"mode": "noTime",
|
||||
"resumeExecution": true,
|
||||
"type": "Sensor",
|
||||
"exchangeName": "Poloniex",
|
||||
"process": "Live-Trades",
|
||||
"startYear": 2019,
|
||||
"endYear": 2021,
|
||||
"month": 1
|
||||
},
|
||||
{
|
||||
"devTeam": "AAMasters",
|
||||
"bot": "AACharly",
|
||||
"mode": "noTime",
|
||||
"resumeExecution": true,
|
||||
"type": "Sensor",
|
||||
"exchangeName": "Poloniex",
|
||||
"process": "Hole-Fixing",
|
||||
"startYear": 2019,
|
||||
"endYear": 2021,
|
||||
"month": 1
|
||||
},
|
||||
{
|
||||
"devTeam": "AAMasters",
|
||||
"bot": "AABruce",
|
||||
"mode": "noTime",
|
||||
"resumeExecution": true,
|
||||
"type": "Indicator",
|
||||
"exchangeName": "Poloniex",
|
||||
"process": "Single-Period-Daily",
|
||||
"startYear": 2019,
|
||||
"endYear": 2021,
|
||||
"month": 1
|
||||
},
|
||||
{
|
||||
"devTeam": "AAMasters",
|
||||
"bot": "AAOlivia",
|
||||
"mode": "noTime",
|
||||
"resumeExecution": true,
|
||||
"type": "Indicator",
|
||||
"type": "Trading-Engine",
|
||||
"exchangeName": "Poloniex",
|
||||
"process": "Multi-Period-Daily",
|
||||
"startYear": 2019,
|
||||
"endYear": 2021,
|
||||
"month": 1
|
||||
},
|
||||
{
|
||||
"devTeam": "AAMasters",
|
||||
"bot": "AAOlivia",
|
||||
"mode": "noTime",
|
||||
"resumeExecution": true,
|
||||
"type": "Indicator",
|
||||
"exchangeName": "Poloniex",
|
||||
"process": "Multi-Period-Market",
|
||||
"startYear": 2019,
|
||||
"endYear": 2021,
|
||||
"month": 1
|
||||
},
|
||||
{
|
||||
"devTeam": "AAMasters",
|
||||
"bot": "AATom",
|
||||
"mode": "noTime",
|
||||
"resumeExecution": true,
|
||||
"type": "Indicator",
|
||||
"exchangeName": "Poloniex",
|
||||
"process": "Multi-Period-Daily",
|
||||
"startYear": 2019,
|
||||
"endYear": 2021,
|
||||
"month": 1
|
||||
},
|
||||
{
|
||||
"devTeam": "AAMasters",
|
||||
"bot": "AATom",
|
||||
"mode": "noTime",
|
||||
"resumeExecution": true,
|
||||
"type": "Indicator",
|
||||
"exchangeName": "Poloniex",
|
||||
"process": "Multi-Period-Market",
|
||||
"startYear": 2019,
|
||||
"endYear": 2021,
|
||||
"month": 1
|
||||
},
|
||||
{
|
||||
"devTeam": "AAMasters",
|
||||
"bot": "AAChris",
|
||||
"mode": "noTime",
|
||||
"resumeExecution": true,
|
||||
"type": "Indicator",
|
||||
"exchangeName": "Poloniex",
|
||||
"process": "Multi-Period-Daily",
|
||||
"startYear": 2019,
|
||||
"endYear": 2021,
|
||||
"month": 1
|
||||
},
|
||||
{
|
||||
"devTeam": "AAMasters",
|
||||
"bot": "AAChris",
|
||||
"mode": "noTime",
|
||||
"resumeExecution": true,
|
||||
"type": "Indicator",
|
||||
"exchangeName": "Poloniex",
|
||||
"process": "Multi-Period-Market",
|
||||
"startYear": 2019,
|
||||
"endYear": 2021,
|
||||
"month": 1
|
||||
},
|
||||
{
|
||||
"devTeam": "AAMasters",
|
||||
"bot": "AAPaula",
|
||||
"mode": "noTime",
|
||||
"resumeExecution": true,
|
||||
"type": "Indicator",
|
||||
"exchangeName": "Poloniex",
|
||||
"process": "Multi-Period-Daily",
|
||||
"startYear": 2019,
|
||||
"endYear": 2021,
|
||||
"month": 1
|
||||
},
|
||||
{
|
||||
"devTeam": "AAMasters",
|
||||
"bot": "AAPaula",
|
||||
"mode": "noTime",
|
||||
"resumeExecution": true,
|
||||
"type": "Indicator",
|
||||
"exchangeName": "Poloniex",
|
||||
"process": "Multi-Period-Market",
|
||||
"startYear": 2019,
|
||||
"endYear": 2021,
|
||||
"month": 1
|
||||
"beginDatetime": "2019-08-01T08:00:00.000Z",
|
||||
"timePeriod": "05-min"
|
||||
}
|
||||
]
|
||||
Reference in new issue
Block a user