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); } }
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); }
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); }
// mock has a constructor public Order() { IB = new IBEx(); }
public Order() // mock has a constructor { IB = new IBEx(); }