public TickTraderHistoryInfo GetTicksHistoryInfo(string symbol, bool isLevel2) { var info = this.dataFeed.Server.GetQuotesHistoryFiles(symbol, isLevel2, ZeroDateTime); var result = new TickTraderHistoryInfo { AvailableFrom = info.FromAll, AvailableTo = info.ToAll }; return(result); }
public TickTraderHistoryInfo GetBarsHistoryInfo(string symbol, Periodicity periodicity, FxPriceType priceType) { var apiPriceType = StorageConvert.ToPriceType(priceType); var apiPeriodicity = StorageConvert.ToBarPeriod(periodicity); var info = this.dataFeed.Server.GetBarsHistoryFiles(symbol, ZeroDateTime, apiPriceType, apiPeriodicity.ToString()); var result = new TickTraderHistoryInfo { AvailableFrom = info.FromAll, AvailableTo = info.ToAll }; return(result); }