public override bool Equals(object other) { OrderComboLeg theOther = other as OrderComboLeg; if (theOther == null) { return(false); } if (this == other) { return(true); } return(Price == theOther.Price); }
public static Order LimitOrderForComboWithLegPrice() { Order order = new Order(); order.Action = "BUY"; order.OrderType = "LMT"; order.TotalQuantity = 1; OrderComboLeg ocl1 = new OrderComboLeg(); ocl1.Price = 5.0; OrderComboLeg ocl2 = new OrderComboLeg(); ocl2.Price = 5.90; order.OrderComboLegs = new List <OrderComboLeg>(); order.OrderComboLegs.Add(ocl1); order.OrderComboLegs.Add(ocl2); order.SmartComboRoutingParams = new List <TagValue>(); order.SmartComboRoutingParams.Add(new TagValue("NonGuaranteed", "1")); return(order); }
protected bool Equals(OrderComboLeg other) { return(Price.Equals(other.Price)); }