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