public Bar GetClosestBar(string symbol, DateTime startTime) { var bars = new Bars(ConnectLogic.Feed, symbol, PriceType.Bid, BarPeriod.S1, startTime, 1); var bar = bars.FirstOrDefault(); return(bar); }
public Bar GetClosestBar(string symbol, DateTime startTime) { var bars = new Bars(ConnectLogic.Feed, symbol, PriceType.Bid, BarPeriod.S1, startTime, 1); var bar = bars.FirstOrDefault(); return bar; }