コード例 #1
0
ファイル: Order.cs プロジェクト: zhuzhenping/OpenQuant.API
 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);
     }
 }
コード例 #2
0
ファイル: Order.cs プロジェクト: zhuzhenping/FreeOQ
 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);
 }
コード例 #3
0
ファイル: Order.cs プロジェクト: houzhongxu/OpenQuant.API
		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);
			}
		}
コード例 #4
0
ファイル: Order.cs プロジェクト: heber/FreeOQ
		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);
		}
コード例 #5
0
 // mock has a constructor
 public Order()
 {
     IB = new IBEx();
 }
コード例 #6
0
 public Order() // mock has a constructor
 {
     IB = new IBEx();
 }