public IHttpActionResult GetPriceForRequest(SymbolRequest request, DateTime startDate, DateTime endDate) { return(Json(_repository.GetPrices(request, startDate, endDate))); }
public async Task <SymbolResponse> SymbolAsync(SymbolRequest request, CancellationToken cancellationToken = default) => await base.SymbolAsync(request, cancellationToken : cancellationToken).ResponseAsync;
public IEnumerable <PriceResponse> GetPrices(SymbolRequest symbol, DateTime startDate, DateTime endDate) { return(LoadPrices(new List <SymbolRequest> { symbol }, startDate, endDate)); }
public IAsyncEnumerable <SymbolResponse> SymbolStream(SymbolRequest request, CancellationToken cancellationToken = default) => base.SymbolStream(request, cancellationToken: cancellationToken).ResponseStream.ReadAllAsync(cancellationToken);