Esempio n. 1
0
 internal Order(SingleOrder order)
 {
     this.order      = order;
     this.instrument = (Map.SQ_OQ_Instrument[order.Instrument] as Instrument);
     this.ibEx       = new IBEx(order);
     if (order.Provider == null)
     {
         order.Provider     = Configuration.Active.ExecutionProvider;
         order.StrategyMode = ConfigurationModeConverter.ModeToChar(Configuration.ActiveMode);
     }
 }
Esempio n. 2
0
 internal Order(SingleOrder order)
 {
     this.order      = order;
     this.instrument = Map.FQ_OQ_Instrument[(object)order.Instrument] as Instrument;
     this.ibEx       = new IBEx(order);
     if (order.Provider != null)
     {
         return;
     }
     order.Provider     = Configuration.Active.ExecutionProvider;
     order.StrategyMode = ConfigurationModeConverter.ModeToChar(Configuration.ActiveMode);
 }