Exemple #1
0
        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);
        }
Exemple #2
0
        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;
		}