Sequence Execution

This commit is contained in:
Matias committed 2019-08-07 15:21:02 -03:00
1 parent 39493642f7
commit ee06702216
17 files changed
+257 -181

No files matched your search

+2 -2
View File
@@ -38,8 +38,8 @@ exports.getStrategy = async function () {
global.STRATEGY = strategizerResponse.data.data.strategizer_TradingSystemByFb.data;
} else {
let fileLocation = process.env.CONFIG_PATH + 'userConfig.json'
let strategy = await readFileAsync(fileLocation, { encoding: 'utf8' })
global.STRATEGY = JSON.parse(strategy)
let userConfig = await readFileAsync(fileLocation, { encoding: 'utf8' })
global.STRATEGY = JSON.parse(userConfig).strategy
}
}