public static IAsyncEnumerable <IReadOnlyDictionary <String, IReadOnlyList <IQuote> > > GetHistoricalQuotesMultiPagesAsAsyncEnumerable( this IAlpacaDataClient client, HistoricalQuotesRequest request, CancellationToken cancellationToken) => getValidatedRequestWithoutPageToken(request.EnsureNotNull(nameof(request))) .GetResponsesByPages(client.EnsureNotNull(nameof(client)).GetHistoricalQuotesAsync, cancellationToken);
public static IAsyncEnumerable <IQuote> GetHistoricalQuotesAsAsyncEnumerable( this IAlpacaDataClient client, HistoricalQuotesRequest request, CancellationToken cancellationToken) => getValidatedRequestWithoutPageToken(request.EnsureNotNull(nameof(request))) .GetResponsesByItems(client.EnsureNotNull(nameof(client)).ListHistoricalQuotesAsync, cancellationToken);