//private ExchangeMemCache _exchangeInfo; public PoloniexHistoryPriceProvider(IMarketDataMemCacheService marketDataMemCacheService, IMemoryCache memCache) : base() { _marketDataMemCacheService = marketDataMemCacheService; _historyDataMemCache = memCache; //_exchangeInfo = marketDataMemCacheService.GetExchange(_exchangeName); }
public ClientController( IMarketDataMemCacheService memCacheService, PriceService priceService) { _marketDataService = memCacheService; _priceService = priceService; }
public PriceService(IMarketDataMemCacheService marketDataMemCacheService) { _marketDataDict = new Dictionary <string, PriceProvider> { { "binance", new BinancePriceProvider(marketDataMemCacheService) }, { "poloniex", new PoloniexPriceProvider(marketDataMemCacheService) }, }; }
public HistoryPriceService( IMarketDataMemCacheService marketDataMemCacheService, IMemoryCache memoryCache) { _marketDataDict = new Dictionary <string, HistoryPriceProvider> { { "poloniex", new PoloniexHistoryPriceProvider(marketDataMemCacheService, memoryCache) }, }; }
public BusinessController( IMarketDataMemCacheService memCacheService, PriceService priceService, HistoryPriceService historyPriceService) { _marketDataService = memCacheService; _priceService = priceService; _historyPriceService = historyPriceService; }
//private ExchangeMemCache _exchangeInfo; public BinancePriceProvider(IMarketDataMemCacheService marketDataMemCacheService) : base() { _marketDataMemCacheService = marketDataMemCacheService; //_exchangeInfo = marketDataMemCacheService.GetExchange(_exchangeName); }