/// <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);
public Task <IMultiPage <ITrade> > GetHistoricalTradesAsync( HistoricalTradesRequest request, CancellationToken cancellationToken = default) => request.Symbols.Count == 1 ? listHistoricalTradesAsync(request, cancellationToken).AsMultiPageAsync <ITrade, JsonMultiTradesPage>() : getHistoricalTradesAsync(request, cancellationToken);