Exemplo n.º 1
0
 public CurrencyHistoryService(
     ICacheProvider <CurrencyHistoryData> cacheProvider,
     ILogger <CurrencyHistoryService> logger,
     IHttpClientService httpClientService,
     CurrencySourceService currencySourceService,
     SecurityStaticDataService staticDataService,
     IOptions <HistoryOptions <Currency> > config) : base(cacheProvider, logger)
 {
     _httpClientService     = httpClientService;
     _currencySourceService = currencySourceService;
     _staticDataService     = staticDataService;
     _config = config.Value;
 }
Exemplo n.º 2
0
 public BondHistoryService(
     ICacheProvider <BondHistoryData> cacheProvider,
     ILogger <BondHistoryService> logger,
     IHttpClientService httpClientService,
     BondSourceService bondSourceService,
     SecurityStaticDataService staticDataService,
     IOptions <HistoryOptions <Bond> > config) : base(cacheProvider, logger)
 {
     _httpClientService = httpClientService;
     _bondSourceService = bondSourceService;
     _staticDataService = staticDataService;
     _config            = config.Value;
 }
Exemplo n.º 3
0
 public ShareHistoryService(
     ICacheProvider <ShareHistoryData> cacheProvider,
     ILogger <ShareHistoryService> logger,
     IHttpClientService httpClientService,
     ShareSourceService shareSourceService,
     EtfSourceService etfSourceService,
     SecurityStaticDataService staticDataService,
     IOptions <HistoryOptions <Share> > config) : base(cacheProvider, logger)
 {
     _httpClientService  = httpClientService;
     _staticDataService  = staticDataService;
     _shareSourceService = shareSourceService;
     _etfSourceService   = etfSourceService;
     _config             = config.Value;
 }
Exemplo n.º 4
0
 public FuturesContractService(
     IHttpClientService getService,
     ICacheProvider <string> stringCacheProvider,
     ICacheProvider <FuturesContract> contractCacheProvider,
     IOptions <MarketOptions <Futures> > marketConf,
     IOptions <HistoryOptions <Futures> > historyConf,
     SecurityStaticDataService staticDataService,
     ILogger <FuturesContractService> logger)
 {
     _getService            = getService;
     _stringCacheProvider   = stringCacheProvider;
     _contractCacheProvider = contractCacheProvider;
     _marketConf            = marketConf.Value;
     _historyConf           = historyConf.Value;
     _staticDataService     = staticDataService;
     _logger = logger;
     _futuresContractHistoryOffset = TimeSpan.FromDays(365 * 3 + 30);
 }
Exemplo n.º 5
0
 public MinuteHistoryService(
     IHttpClientService getService,
     SecurityStaticDataService staticDataService,
     ShareSourceService shareSourceService,
     BondSourceService bondSourceService,
     EtfSourceService etfSourceService,
     CurrencySourceService currencySourceService,
     ICacheProvider <TimeStampHistoryData> cache,
     IOptions <MinuteHistoryOptions> conf,
     ILogger <MinuteHistoryService> logger)
 {
     _logger                = logger;
     _getService            = getService;
     _staticDataService     = staticDataService;
     _shareSourceService    = shareSourceService;
     _bondSourceService     = bondSourceService;
     _etfSourceService      = etfSourceService;
     _currencySourceService = currencySourceService;
     _conf  = conf.Value;
     _cache = cache;
 }
Exemplo n.º 6
0
 public StaticDataController(
     SecurityStaticDataService staticDataService)
 {
     _staticDataService = staticDataService;
 }