コード例 #1
0
 public LiteDbDataStore(LiteDbOptions options)
 {
     _database                  = new LiteDatabase(options.LiteDbName);
     _ordersAdapter             = _database.GetCollection <TradeAdapter>("Orders");
     _traderAdapter             = _database.GetCollection <TraderAdapter>("Traders");
     _walletTransactionsAdapter = _database.GetCollection <WalletTransactionAdapter>("WalletTransactions");
 }
コード例 #2
0
        public LiteDbDataStoreBacktest(LiteDbOptions options)
        {
            var conn = new ConnectionString {
                Filename = options.LiteDbName, Mode = LDB.FileMode.Exclusive
            };

            _database = new LiteDatabase(conn);
            GetDatabase(new BacktestOptions());
        }
コード例 #3
0
        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");
        }
コード例 #4
0
 public LiteDbDataStoreBacktest(LiteDbOptions options)
 {
     _database = new LiteDatabase(options.LiteDbName);
     GetDatabase(new BacktestOptions());
 }