Merged in SP-270-piq-bug (pull request #381)

SP-270 Order Book - PIQ Bug (fix OrderSecurityAlgo.Equals impl)
This commit is contained in:
Taha Afzal committed 2019-12-18 15:16:07 +00:00
commit 1d2faeba3e
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());