This repository has been archived on 2025-10-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
gekko/plugins/mongodb/util.js
T
2021-06-06 20:25:14 +02:00

16 lines
451 B
JavaScript

var config = require('../../core/util.js').getConfig();
var watch = config.watch;
var exchangeLowerCase = watch ? watch.exchange.toLowerCase() : watch = {}; // Do not crash on this, not needed to read from db
var settings = {
exchange: watch.exchange,
pair: [watch.currency, watch.asset],
historyCollection: `${exchangeLowerCase}_candles`,
adviceCollection: `${exchangeLowerCase}_advices`
};
module.exports = {
settings
};