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); }
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)); }