From e70e3d2a2f3fda133ccdd026f7c051433bbc66fa Mon Sep 17 00:00:00 2001 From: John Colvin Date: Mon, 2 Dec 2019 15:24:10 -0600 Subject: [PATCH] SP-270 Order Book - PIQ Bug (fix OrderSecurityAlgo.Equals impl) --- src/client/spark/Orders/OrderSecurity.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client/spark/Orders/OrderSecurity.cs b/src/client/spark/Orders/OrderSecurity.cs index a0c356b63..391942e86 100644 --- a/src/client/spark/Orders/OrderSecurity.cs +++ b/src/client/spark/Orders/OrderSecurity.cs @@ -83,6 +83,7 @@ namespace bts.api.orderman { public bool Equals(OrderSecurityAlgo other) => order == other.order && + piq == other.piq && security == other.security && algo == other.algo; @@ -92,6 +93,7 @@ namespace bts.api.orderman { public override int GetHashCode() => EqualityComparer.auto_phase( order.Key.GetHashCode(), + piq?.GetHashCode() ?? 0, security.HasValue ? security.Value.Id.GetHashCode() : 0, algo.GetHashCode());