예제 #1
0
 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);
예제 #2
0
 public static IAsyncEnumerable <IQuote> GetHistoricalQuotesAsAsyncEnumerable(
     this IAlpacaDataClient client,
     HistoricalQuotesRequest request,
     CancellationToken cancellationToken) =>
 getValidatedRequestWithoutPageToken(request.EnsureNotNull(nameof(request)))
 .GetResponsesByItems(client.EnsureNotNull(nameof(client)).ListHistoricalQuotesAsync, cancellationToken);