public OrderBookHelperFactory(IExchangeApiFactory exchangeApiFactory) { if (exchangeApiFactory == null) { throw new ArgumentNullException(nameof(exchangeApiFactory)); } orderBookHelpers = new Dictionary <Exchange, IOrderBookHelper>(); orderBookHelpers.Add(Exchange.Binance, new BinanceOrderBookHelper()); orderBookHelpers.Add(Exchange.Kucoin, new KucoinOrderBookHelper(exchangeApiFactory.GetExchangeApi(Exchange.Kucoin))); }
public TradeHelperFactory(IExchangeApiFactory exchangeApiFactory) { if (exchangeApiFactory == null) { throw new ArgumentNullException(nameof(exchangeApiFactory)); } tradeHelpers = new Dictionary <Exchange, ITradeHelper>(); tradeHelpers.Add(Exchange.Binance, new TradeHelper()); tradeHelpers.Add(Exchange.Kucoin, new TradeHelper()); }
public SymbolsCacheFactory(IExchangeApiFactory exchangeApiFactory, IAccountsService accountsService) { this.exchangeApiFactory = exchangeApiFactory; this.accountsService = accountsService; exchangeSymbolsCache = new Dictionary <Exchange, ISymbolsCache>(); }
public SymbolsCacheFactory(IExchangeApiFactory exchangeApiFactory) { this.exchangeApiFactory = exchangeApiFactory; exchangeSymbolsCache = new Dictionary <Exchange, ISymbolsCache>(); }
public TradeHelperFactory(IExchangeApiFactory exchangeApiFactory) { tradeHelpers = new Dictionary <Exchange, ITradeHelper>(); tradeHelpers.Add(Exchange.Binance, new TradeHelper()); tradeHelpers.Add(Exchange.Kucoin, new TradeHelper()); }
public OrderBookHelperFactory(IExchangeApiFactory exchangeApiFactory) { orderBookHelpers = new Dictionary <Exchange, IOrderBookHelper>(); orderBookHelpers.Add(Exchange.Binance, new BinanceOrderBookHelper()); orderBookHelpers.Add(Exchange.Kucoin, new KucoinOrderBookHelper(exchangeApiFactory.GetExchangeApi(Exchange.Kucoin))); }
public ExchangeService(IExchangeApiFactory exchangeApiFactory) { this.exchangeApiFactory = exchangeApiFactory ?? throw new ArgumentNullException(nameof(exchangeApiFactory)); exchanges = this.exchangeApiFactory.GetExchanges(); }
public ExchangeService(IExchangeApiFactory exchangeApiFactory) { this.exchangeApiFactory = exchangeApiFactory; exchanges = this.exchangeApiFactory.GetExchanges(); }