Пример #1
0
        private void DeleteIntradiaryData(string marketName)
        {
            DateTime marketTime = MarketService.GetMarketCurrentLocalTime(marketName);

            if (marketTime.Hour == 5)
            {
                QuotesService.ClearIntradiaryDataByMarketID(marketName);
            }
        }
 public string ClearIntradiary(string market_name)
 {
     try
     {
         QuotesService.ClearIntradiaryDataByMarketID(market_name);
     }
     catch (Exception ex)
     {
         return("ERROR Deleting Intradiary:\n " + ex.Message);
     }
     return("Intradiary Deleted");
 }
 protected override void ExecuteTask(VcssTaskModel vcssTask)
 {
     QuotesService.ClearIntradiaryDataByMarketID(vcssTask.VcssTaskInfo.market_id.Value);
 }