/// <inheritdoc />
 public Task <IPage <IHistoricalTrade> > ListHistoricalTradesAsync(
     HistoricalTradesRequest request,
     CancellationToken cancellationToken = default) =>
 _httpClient.GetAsync <IPage <IHistoricalTrade>, JsonTradesPage>(
     request.EnsureNotNull(nameof(request)).Validate().GetUriBuilder(_httpClient),
     cancellationToken, _alpacaRestApiThrottler);
Ejemplo n.º 2
0
 public Task <IMultiPage <ITrade> > GetHistoricalTradesAsync(
     HistoricalTradesRequest request,
     CancellationToken cancellationToken = default) =>
 request.Symbols.Count == 1
         ? listHistoricalTradesAsync(request, cancellationToken).AsMultiPageAsync <ITrade, JsonMultiTradesPage>()
         : getHistoricalTradesAsync(request, cancellationToken);