From 14c9e820ce7a2a3f2ff563d73a35805a46cbaa81 Mon Sep 17 00:00:00 2001 From: Matias Date: Thu, 8 Aug 2019 19:47:58 -0300 Subject: [PATCH] Adding trading bot parameters --- Run.js | 9 ++++++--- sequence.json | 14 ++++++++------ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Run.js b/Run.js index 06de091d0..de46b976e 100644 --- a/Run.js +++ b/Run.js @@ -55,11 +55,14 @@ function sequenceExecution(currentStep) { execution.month ? process.env.MONTH = execution.month : undefined; execution.beginDatetime ? process.env.BEGIN_DATE_TIME = execution.beginDatetime : undefined; execution.dataSet ? process.env.DATA_SET = execution.dataSet : undefined; + execution.timePeriod ? process.env.TIME_PERIOD = execution.timePeriod : undefined; + execution.exchangeName ? global.EXCHANGE_NAME = execution.exchangeName : undefined; + execution.baseAsset ? global.BASE_ASSET = execution.baseAsset : undefined; + execution.balanceAssetA ? global.INITIAL_BALANCE_ASSET_A = execution.balanceAssetA : undefined; + execution.balanceAssetB ? global.INITIAL_BALANCE_ASSET_B = execution.balanceAssetB : undefined; + process.env.CLONE_ID = 1; - execution.timePeriod ? process.env.TIME_PERIOD = execution.timePeriod : undefined; - - execution.exchangeName ? global.EXCHANGE_NAME = execution.exchangeName : undefined; // global.FULL_LOG = execution.fullLog; let stepKey = execution.devTeam + '.' + execution.bot + '.' + execution.process; diff --git a/sequence.json b/sequence.json index 3e7206562..7baa8acf1 100644 --- a/sequence.json +++ b/sequence.json @@ -23,7 +23,6 @@ "endYear": 2021, "month": 1 }, - { "devTeam": "AAMasters", "bot": "AABruce", @@ -157,8 +156,8 @@ "month": 1 }, { - "devTeam": "vikingsalerts", - "bot": "simulator-bot-vikingsalerts", + "devTeam": "user", + "bot": "simulator-bot-user", "mode": "noTime", "resumeExecution": true, "type": "Indicator", @@ -168,8 +167,8 @@ "timePeriod": "05-min" }, { - "devTeam": "vikingsalerts", - "bot": "bot-vikingsalerts", + "devTeam": "user", + "bot": "bot-user", "mode": "live", "resumeExecution": true, "type": "Trading", @@ -177,6 +176,9 @@ "process": "Trading-Process", "beginDatetime": "2019-08-01T08:00:00.000Z", "timePeriod": "05-min", - "dataSet": "Multi-Period-Daily" + "dataSet": "Multi-Period-Daily", + "baseAsset": "assetB", + "balanceAssetA": 0, + "balanceAssetB": 0.001 } ]