SPARK-1559 - Badges - hide orders whose DisplayStatus is set to hidden
This commit is contained in:
1 parent
e4e24c0999
commit
29fd10e576
1 file changed
+1
-1
@@ -83,7 +83,7 @@ namespace mbts.spark {
|
||||
// Here we manage N orders to 1 price slot in the ladder
|
||||
|
||||
Dictionary<double, HashSet<uint>> orders_used_in_this_update = new Dictionary<double, HashSet<uint>>(_equality);
|
||||
var ladders_orders = working.Values.Where(o => o.Def.SecurityKey == security.Id);
|
||||
var ladders_orders = working.Values.Where(o => o.Def.SecurityKey == security.Id && (o.HasState && o.State.DisplayStatus == OrderState.Types.DisplayStatus.Visible));
|
||||
foreach (var wo in ladders_orders) {
|
||||
var slot_price_target = wo.price();
|
||||
var order_type = wo.order_type();
|
||||
|
||||
Reference in new issue
Block a user