public LiteDbDataStore(LiteDbOptions options) { _database = new LiteDatabase(options.LiteDbName); _ordersAdapter = _database.GetCollection <TradeAdapter>("Orders"); _traderAdapter = _database.GetCollection <TraderAdapter>("Traders"); _walletTransactionsAdapter = _database.GetCollection <WalletTransactionAdapter>("WalletTransactions"); }
public LiteDbDataStoreBacktest(LiteDbOptions options) { var conn = new ConnectionString { Filename = options.LiteDbName, Mode = LDB.FileMode.Exclusive }; _database = new LiteDatabase(conn); GetDatabase(new BacktestOptions()); }
public LiteDbDataStore(LiteDbOptions options) { var conn = new ConnectionString { Filename = options.LiteDbName, Mode = FileMode.Exclusive }; _database = new LiteDatabase(conn); _ordersAdapter = _database.GetCollection <TradeAdapter>("Orders"); _traderAdapter = _database.GetCollection <TraderAdapter>("Traders"); _walletTransactionsAdapter = _database.GetCollection <WalletTransactionAdapter>("WalletTransactions"); }
public LiteDbDataStoreBacktest(LiteDbOptions options) { _database = new LiteDatabase(options.LiteDbName); GetDatabase(new BacktestOptions()); }