20 using System.Collections.Generic;
39 orders =
new List<Order> { order };
46 var otherOrder = orderProvider(otherOrdersId);
47 if (otherOrder !=
null)
49 orders.Add(otherOrder);
63 Log.
Debug($
"GroupOrderExtensions.TryGetGroupOrders(): missing orders of group {order.GroupOrderManager.Id}." +
64 $
" We have {orders.Count}/{order.GroupOrderManager.Count} orders will skip");
70 orders.Sort((x, y) => x.Id.CompareTo(y.Id));
84 securities =
new(orders.Count);
85 for (var i = 0; i < orders.Count; i++)
87 var order = orders[i];
88 var security = securityProvider.
GetSecurity(order.Symbol);
94 securities[order] = security;
117 return groupOrderManager !=
null ? legRatio * groupOrderManager.
Quantity : legRatio;
130 return groupOrderManager !=
null ? legGroupQuantity / groupOrderManager.
Quantity : legGroupQuantity;