예제 #1
0
        public Task<List<HistoricalDataDto>> GetDataAsync(string ticker, DateTime from, DateTime to)
        {
            var request = new GetHistoricDataRequest
            {
                Ticker = ticker,
                From = from,
                To = to
            };

            return _requestTask
                .Get(request)
                .Select(x => x.Results.ToList(), _scheduler.Task.TPL);
        }
예제 #2
0
        public Task <List <HistoricalDataDto> > GetDataAsync(string ticker, DateTime from, DateTime to)
        {
            var request = new GetHistoricDataRequest
            {
                Ticker = ticker,
                From   = from,
                To     = to
            };

            return(_requestTask
                   .Get(request)
                   .Select(x => x.Results.ToList(), _scheduler.Task.TPL));
        }