Update TradingRecords.js

This commit is contained in:
Luis Fernando Molina committed 2020-08-09 21:13:57 +02:00
1 parent a3414ccb7d
commit ab2fc2966c
1 file changed
+5
+5
View File
@@ -90,6 +90,11 @@ exports.newTradingRecords = function newTradingRecords(bot, logger) {
let productRootNode = productRoot[index]
let record = scanRecordDefinition(product, productRootNode, index)
if (record !== undefined) {
/*
We will add the index value to the record itself, so that the plotter can know to which
brach of the trading engine data structure it belongs.
*/
record.push(index)
persistIndividualRecord(record, product, outputDatasetArray)
}
}