SP-270 Order Book - PIQ Bug (fix OrderSecurityAlgo.Equals impl)

This commit is contained in:
John Colvin authored and Michael Harding committed 2020-01-03 14:57:46 -05:00
1 parent 96016d427d
commit e70e3d2a2f
1 file changed
+2
+2
View File
@@ -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());