public Task <List <Entity> > GetEntitiesAsync(DataSource dataSource) { var request = new GetMetaDataRequest { DataSource = dataSource }; return(_requestTask.Get(request) .Select(x => x.Results.ToList(), _scheduler.Task.TPL)); }
public Task <List <SerializableDynamicObject> > GetDataAsync(Query query) { var request = new GetDataRequest { Query = query }; return(_requestTask.Get(request) .Select(x => x.Results.ToList(), _scheduler.Task.TPL)); }
public Task <QuoteModel> GetQuoteAsync(Guid id) { var request = new GetQuoteRequest { Id = id }; return(_requestTask .Get(request) .Select(x => { var quoteDto = x.Result; var quoteModel = _quoteModelFactory(); quoteModel.Initialise(id); quoteModel.Instrument = new LookupValue { Id = quoteDto.InstrumentId, Value = quoteDto.InstrumentName }; quoteModel.Notes = quoteDto.Notes; return quoteModel; }, _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)); }
public Task <GetAttributesResponse> GetAttributesAsync() { return(_requestTask.Get(new GetAttributesRequest())); }
public override Task <ReportRunnerResponse> GenerateAsync(ReportRunnerRequest request) { return(_requestTask.Get(request)); }
public Task <List <DataSource> > GetDataSourcesAsync() { return(_requestTask.Get(new GetDataSourcesRequest()) .Select(x => x.Results.ToList(), _scheduler.Task.TPL)); }
public Task <List <DateTime> > GetAvailableDatesAsync() { return(_requestTask.Get(new InitialiseParametersRequest()) .Select(x => x.AvailableDates.ToList(), _scheduler.Task.TPL)); }
public Task <List <QuoteDto> > GetQuotesAsync() { return(_requestTask .Get(new GetQuotesRequest()) .Select(x => x.Results.ToList(), _scheduler.Task.TPL)); }
public override Task <GetHistoryListResponse> GetHistoryAsync(GetHistoryListRequest request) { return(_requestTask.Get(request)); }