19 using System.Collections.Generic;
23 internal sealed
class MarketsReportElement : ReportElement
46 public override string Render()
48 var liveOrders = _live?.Orders?.Values.ToList();
49 if (liveOrders ==
null)
51 liveOrders =
new List<Order>();
54 var orders =
new List<Order>();
55 var backtestOrders = _backtest?.
Orders?.Values;
56 if (backtestOrders !=
null)
58 orders = backtestOrders.ToList();
61 orders = orders.Union(liveOrders).ToList();
63 var securityTypes = orders.DistinctBy(o => o.SecurityType).Select(s => s.SecurityType.ToString()).ToList();
66 return string.Join(
",", securityTypes);