public IHttpActionResult GetPriceForRequest(SymbolRequest request, DateTime startDate, DateTime endDate)
 {
     return(Json(_repository.GetPrices(request, startDate, endDate)));
 }
示例#2
0
 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));
 }
示例#4
0
 public IAsyncEnumerable <SymbolResponse> SymbolStream(SymbolRequest request, CancellationToken cancellationToken = default) =>
 base.SymbolStream(request, cancellationToken: cancellationToken).ResponseStream.ReadAllAsync(cancellationToken);