Beispiel #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.Duration     = Duration;
     order.Price        = Price;
     order.Quantity     = Quantity;
     order.Status       = Status;
     order.Symbol       = Symbol;
     order.Tag          = Tag;
 }
Beispiel #2
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();
 }
Beispiel #3
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.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();
 }