UNPKG

bluebot

Version:

A bitcoin trading bot for auto trading at various exchanges

96 lines (78 loc) 2.31 kB
var UIconfig = require('../vue/UIconfig'); var config = {}; // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // GENERAL SETTINGS // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.silent = false; config.debug = true; // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // CONFIGURING TRADING ADVICE // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.tradingAdvisor = { talib: { enabled: require('../supportsTalib'), version: '1.0.2' }, tulind: { enabled: require('../supportsTulip'), version: '0.8.7' } } config.candleWriter = { enabled: false } config.adviceWriter = { enabled: false, muteSoft: true, } // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // CONFIGURING ADAPTER // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // configurable in the UIconfig config.adapter = UIconfig.adapter; config.sqlite = { path: 'plugins/sqlite', version: 0.1, dataDirectory: 'history', journalMode: 'WAL', // setting this to 'DEL' may prevent db locking on windows dependencies: [{ module: 'sqlite3', version: '3.1.4' }] } // Postgres adapter example config (please note: requires postgres >= 9.5): config.postgresql = { path: 'plugins/postgresql', version: 0.1, connectionString: 'postgres://user:pass@localhost:5432', // if default port database: null, // if set, we'll put all tables into a single database. schema: 'public', dependencies: [{ module: 'pg', version: '6.1.0' }] } // Mongodb adapter, requires mongodb >= 3.3 (no version earlier tested) config.mongodb = { path: 'plugins/mongodb', version: 0.1, connectionString: 'mongodb://mongodb/bluebot', // connection to mongodb server dependencies: [{ module: 'mongojs', version: '2.4.0' }] } // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // CONFIGURING BACKTESTING // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ config.backtest = { daterange: 'scan', batchSize: 50 } config.importer = { daterange: { // NOTE: these dates are in UTC from: "2016-06-01 12:00:00" } } module.exports = config;