Exemplo n.º 1
0
        //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;
 }
Exemplo n.º 3
0
 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) },
     };
 }
Exemplo n.º 5
0
 public BusinessController(
     IMarketDataMemCacheService memCacheService,
     PriceService priceService,
     HistoryPriceService historyPriceService)
 {
     _marketDataService   = memCacheService;
     _priceService        = priceService;
     _historyPriceService = historyPriceService;
 }
Exemplo n.º 6
0
        //private ExchangeMemCache _exchangeInfo;

        public BinancePriceProvider(IMarketDataMemCacheService marketDataMemCacheService)
            : base()
        {
            _marketDataMemCacheService = marketDataMemCacheService;
            //_exchangeInfo = marketDataMemCacheService.GetExchange(_exchangeName);
        }