Beispiel #1
0
 public Task <IMultiPage <IQuote> > GetHistoricalQuotesAsync(
     HistoricalQuotesRequest request,
     CancellationToken cancellationToken = default) =>
 request.Symbols.Count == 1
         ? listHistoricalQuotesAsync(request, cancellationToken)
 .AsMultiPageAsync <IQuote, JsonMultiQuotesPage <JsonHistoricalQuote> >()
         : getHistoricalQuotesAsync(request, cancellationToken);
 /// <inheritdoc />
 public Task <IPage <IHistoricalQuote> > ListHistoricalQuotesAsync(
     HistoricalQuotesRequest request,
     CancellationToken cancellationToken = default) =>
 _httpClient.GetAsync <IPage <IHistoricalQuote>, JsonQuotesPage>(
     request.EnsureNotNull(nameof(request)).Validate().GetUriBuilder(_httpClient),
     cancellationToken, _alpacaRestApiThrottler);