Interface IHistoricalQuotesClient<TRequest>
Provides unified type-safe access for Alpaca Crypto Data API via HTTP/REST.
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public interface IHistoricalQuotesClient<in TRequest>
where TRequest : IHistoricalRequest<TRequest, IQuote>
Type Parameters
Name | Description |
---|---|
TRequest |
Methods
| Improve this Doc View SourceGetHistoricalQuotesAsync(TRequest, CancellationToken)
Gets historical quotes dictionary for several assets from Alpaca REST API endpoint.
Declaration
Task<IMultiPage<IQuote>> GetHistoricalQuotesAsync(TRequest request, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
TRequest | request | Historical quotes request parameters. |
CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
Task<IMultiPage<IQuote>> | Read-only dictionary of historical quotes for specified assets (with pagination data). |
Exceptions
Type | Condition |
---|---|
RequestValidationException | The |
RestClientErrorException | The response contains an error message or the received response cannot be deserialized properly due to JSON schema mismatch. |
ListHistoricalQuotesAsync(TRequest, CancellationToken)
Gets historical quotes list for single asset from Alpaca REST API endpoint.
Declaration
Task<IPage<IQuote>> ListHistoricalQuotesAsync(TRequest request, CancellationToken cancellationToken = null)
Parameters
Type | Name | Description |
---|---|---|
TRequest | request | Historical quotes request parameters. |
CancellationToken | cancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
Returns
Type | Description |
---|---|
Task<IPage<IQuote>> | Read-only list of historical quotes for specified asset (with pagination data). |
Exceptions
Type | Condition |
---|---|
RequestValidationException | The |
RestClientErrorException | The response contains an error message or the received response cannot be deserialized properly due to JSON schema mismatch. |