38 var high = asset.
High;
39 var open = asset.
Open;
40 var close = asset.
Close;
41 var current = asset.
Price;
42 var endTime = asset.
Cache.
GetData()?.EndTime ?? DateTime.MinValue;
46 return new Prices(endTime, current, open, high, low, close);
51 .GetSubscriptionDataConfigs(asset.
Symbol)
52 .Select(x => x.Type).ToList();
56 if (subscriptionTypes.Contains(typeof(
Tick)) && tick !=
null)
61 return new Prices(endTime, price, 0, 0, 0, 0);
68 return new Prices(endTime, price, 0, 0, 0, 0);
80 if (tradeBar !=
null && tradeBar.EndTime > quoteBar.EndTime)
83 return new Prices(tradeBar);
88 var bar = direction ==
OrderDirection.Sell ? quoteBar.Bid : quoteBar.Ask;
91 return new Prices(quoteBar.EndTime, bar);
96 return new Prices(endTime, current, open, high, low, close);