public static void Main() { //SchedulerManager.Instance.Initialize(); IocConfigurator.Configure(); AutoMapperBusinessLogicConfigurator.Configure(); IMarketDataPopulatorService marketDataPopulatorService = ObjectFactory.GetInstance <IMarketDataPopulatorService>(); //foreach (var i in stockConfiguration) //{ // marketDataPopulatorService.PopulateStockOptionQuotes(((System.Configuration.ConfigurationProperty)i).DefaultValue.ToString()); //} //marketDataPopulatorService.PopulateRealTimeQuotes(); marketDataPopulatorService.PopulateRealTimeQuotes(); //marketDataPopulatorService.PopulateRealtimeStocksQuotes(); //marketDataPopulatorService.ErasePerMinutesQuotes(); //marketDataPopulatorService.PopulateLatestStockQuotesToHistoricalQuotesPerDay(); //ITradeIdeaService tradeIdeaService = ObjectFactory.GetInstance<ITradeIdeaService>(); //tradeIdeaService.StoreTradeIdeasInDb(); //MarketDataPopulationService.Instance.Start(); }
public ErasePerMinuteQuotesPopulatingTask(ISchedulerCoreService schedulerCoreService, IMarketDataPopulatorService marketDataPopulatorService) : base(schedulerCoreService, new SchedulerTask { CronExpression = Configuration.ErasePerMinuteQuotesPopCronExpression, Description = "Erase Per Minute Quotes Populating", Name = "Erase Per Minute Quotes Populating", Type = SchedulerTaskType.ErasePerMinuteQuotesPopulating }) { _marketDataPopulatorService = marketDataPopulatorService; }
public LatestStockQuotesToHistoricalQuotesPerDayPopulatingTask(ISchedulerCoreService schedulerCoreService, IMarketDataPopulatorService marketDataPopulatorService) : base(schedulerCoreService, new SchedulerTask { CronExpression = Configuration.LatestStockQuotesToHistoricalQuotesPerDayPopCronExpression, Description = "Latest StockQuotes To HistoricalQuotes Per Day Populating", Name = "Latest StockQuotes To HistoricalQuotes Per Day Populating", Type = SchedulerTaskType.LatestStockQuotesToHistoricalQuotesPerDayPopulating }) { _marketDataPopulatorService = marketDataPopulatorService; }
public RealTimeQuotesPopulatingTask(ISchedulerCoreService schedulerCoreService, IMarketDataPopulatorService marketDataPopulatorService) : base(schedulerCoreService, new SchedulerTask { CronExpression = Configuration.RealTimeQuotesPopCronExpression, Description = "Real Time Quotes Populating", Name = "Real Time Quotes Populating", Type = SchedulerTaskType.RealTimeQuotesPopulating }) { //Logger.Debug("Real Time Quotes " + Configuration.RealTimeQuotesPopCronExpression); _marketDataPopulatorService = marketDataPopulatorService; }