Beispiel #1
0
        private void BroadcastResetCommand(DateTime tradeDay)
        {
            var command = MarketCommandFactory.CreateAccountResetCommand(tradeDay);

            Broadcaster.Default.AddCommand(command);
            var updateTradeDayInfoCommand = MarketCommandFactory.CreateUpdateTradeDayInfoCommand();

            Broadcaster.Default.AddCommand(updateTradeDayInfoCommand);
        }
Beispiel #2
0
 public UpdateTradeDayInfoMarketCommand GetTradeDayInfoCommand()
 {
     try
     {
         return(MarketCommandFactory.CreateUpdateTradeDayInfoCommand());
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         return(null);
     }
 }