示例#1
0
 /// <summary>
 /// Copies base Order properties to the specified order
 /// </summary>
 /// <param name="order">The target of the copy</param>
 protected void CopyTo(Order order)
 {
     order.Id                  = Id;
     order.Time                = Time;
     order.BrokerId            = BrokerId.ToList();
     order.ContingentId        = ContingentId;
     order.TimeInForce         = TimeInForce;
     order.Price               = Price;
     order.PriceCurrency       = PriceCurrency;
     order.Quantity            = Quantity;
     order.Status              = Status;
     order.Symbol              = Symbol;
     order.Tag                 = Tag;
     order.Properties          = Properties?.Clone();
     order.OrderSubmissionData = OrderSubmissionData?.Clone();
 }
示例#2
0
文件: Order.cs 项目: sbnair/lineage
 /// <summary>
 /// Copies base Order properties to the specified order
 /// </summary>
 /// <param name="order">The target of the copy</param>
 protected void CopyTo(Order order)
 {
     order.Id                  = Id;
     order.Time                = Time;
     order.LastFillTime        = LastFillTime;
     order.LastUpdateTime      = LastUpdateTime;
     order.CanceledTime        = CanceledTime;
     order.BrokerId            = BrokerId.ToList();
     order.ContingentId        = ContingentId;
     order.Price               = Price;
     order.PriceCurrency       = PriceCurrency;
     order.Quantity            = Quantity;
     order.Status              = Status;
     order.Symbol              = Symbol;
     order.ExpiryDate          = ExpiryDate;
     order.Tag                 = Tag;
     order.Reason              = Reason;
     order.Properties          = Properties.Clone();
     order.OrderSubmissionData = OrderSubmissionData?.Clone();
 }