Beispiel #1
0
        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();
        }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 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;
 }
Beispiel #4
0
        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;
        }