SP-270 Order Book - PIQ Bug (fix OrderSecurityAlgo.Equals impl)
This commit is contained in:
1 parent
96016d427d
commit
e70e3d2a2f
1 file changed
+2
@@ -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());
|
||||
|
||||
|
||||
Reference in new issue
Block a user