Key Reference

This commit is contained in:
Luis Fernando Molina committed 2020-07-21 11:12:42 +02:00
1 parent 83bd8b4a11
commit fe43a621e4
2 files changed
+4 -5

No files matched your search

+1 -2
View File
@@ -54,8 +54,7 @@ exports.newTradingSystem = function newTradingSystem(bot, logger, tradingEngineM
snapshotsModule.initialize()
tradingExecutionModule.initialize()
/* Adding Functions to Trading System definition */
/* Adding Functions used elsewhere to Trading System definition */
tradingSystem.checkConditions = function (situation, passed) {
/* Given a Situation, we check if all children conditions are true or not */
for (let m = 0; m < situation.conditions.length; m++) {
+3 -3
View File
@@ -227,9 +227,9 @@
if (botConfig.processNode) {
if (botConfig.processNode.marketReference) {
if (botConfig.processNode.marketReference.keyInstance !== undefined) {
if (botConfig.processNode.marketReference.keyInstance.referenceParent !== undefined) {
let key = botConfig.processNode.marketReference.keyInstance.referenceParent
if (botConfig.processNode.marketReference.keyReference !== undefined) {
if (botConfig.processNode.marketReference.keyReference.referenceParent !== undefined) {
let key = botConfig.processNode.marketReference.keyReference.referenceParent
botConfig.KEY = key.config.codeName
botConfig.SECRET = key.config.secret