Class HistoricalCryptoQuotesRequest
Encapsulates request parameters for ListHistoricalQuotesAsync(TRequest, CancellationToken) and GetHistoricalQuotesAsync(TRequest, CancellationToken) calls.
Inherited Members
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public sealed class HistoricalCryptoQuotesRequest : HistoricalRequestBase, IHistoricalRequest<HistoricalCryptoQuotesRequest, IQuote>, IHistoricalRequest
Constructors
| Improve this Doc View SourceHistoricalCryptoQuotesRequest(IEnumerable<String>)
Creates new instance of HistoricalCryptoQuotesRequest object.
Declaration
public HistoricalCryptoQuotesRequest(IEnumerable<String> symbols)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | symbols | Asset symbols for data retrieval. |
HistoricalCryptoQuotesRequest(IEnumerable<String>, IInclusiveTimeInterval)
Creates new instance of HistoricalCryptoQuotesRequest object.
Declaration
public HistoricalCryptoQuotesRequest(IEnumerable<String> symbols, IInclusiveTimeInterval timeInterval)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | symbols | Asset symbols for data retrieval. |
IInclusiveTimeInterval | timeInterval | Inclusive time interval for filtering items in response. |
HistoricalCryptoQuotesRequest(IEnumerable<String>, Interval<DateTime>)
Creates new instance of HistoricalCryptoQuotesRequest object.
Declaration
public HistoricalCryptoQuotesRequest(IEnumerable<String> symbols, Interval<DateTime> timeInterval)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | symbols | Asset symbols for data retrieval. |
Alpaca.Markets.Interval<DateTime> | timeInterval | Inclusive time interval for filtering items in response. |
HistoricalCryptoQuotesRequest(IEnumerable<String>, DateTime, DateTime)
Creates new instance of HistoricalCryptoQuotesRequest object.
Declaration
public HistoricalCryptoQuotesRequest(IEnumerable<String> symbols, DateTime from, DateTime into)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | symbols | Asset symbols for data retrieval. |
DateTime | from | Filter data equal to or after this time. |
DateTime | into | Filter data equal to or before this time. |
HistoricalCryptoQuotesRequest(String)
Creates new instance of HistoricalCryptoQuotesRequest object.
Declaration
public HistoricalCryptoQuotesRequest(String symbol)
Parameters
Type | Name | Description |
---|---|---|
String | symbol | Asset symbol for data retrieval. |
HistoricalCryptoQuotesRequest(String, IInclusiveTimeInterval)
Creates new instance of HistoricalCryptoQuotesRequest object.
Declaration
public HistoricalCryptoQuotesRequest(String symbol, IInclusiveTimeInterval timeInterval)
Parameters
Type | Name | Description |
---|---|---|
String | symbol | Asset symbol for data retrieval. |
IInclusiveTimeInterval | timeInterval | Inclusive time interval for filtering items in response. |
HistoricalCryptoQuotesRequest(String, Interval<DateTime>)
Creates new instance of HistoricalCryptoQuotesRequest object.
Declaration
public HistoricalCryptoQuotesRequest(String symbol, Interval<DateTime> timeInterval)
Parameters
Type | Name | Description |
---|---|---|
String | symbol | Asset symbol for data retrieval. |
Alpaca.Markets.Interval<DateTime> | timeInterval | Inclusive time interval for filtering items in response. |
HistoricalCryptoQuotesRequest(String, DateTime, DateTime)
Creates new instance of HistoricalCryptoQuotesRequest object.
Declaration
public HistoricalCryptoQuotesRequest(String symbol, DateTime from, DateTime into)
Parameters
Type | Name | Description |
---|---|---|
String | symbol | Asset symbol for data retrieval. |
DateTime | from | Filter data equal to or after this time. |
DateTime | into | Filter data equal to or before this time. |
Properties
| Improve this Doc View SourceExchanges
Gets crypto exchanges list for data retrieval (empty list means 'all exchanges').
Declaration
public IReadOnlyCollection<CryptoExchange> Exchanges { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<CryptoExchange> |
LastPathSegment
Gets the last part of the full REST endpoint URL path.
Declaration
protected override String LastPathSegment { get; }
Property Value
Type | Description |
---|---|
String |
Overrides
Methods
| Improve this Doc View SourceWithExchanges(CryptoExchange[])
Creates new instance of HistoricalCryptoQuotesRequest object with the updated Exchanges list.
Declaration
public HistoricalCryptoQuotesRequest WithExchanges(params CryptoExchange[] exchanges)
Parameters
Type | Name | Description |
---|---|---|
CryptoExchange[] | exchanges | Crypto exchanges to add into the list. |
Returns
Type | Description |
---|---|
HistoricalCryptoQuotesRequest | The new instance of the HistoricalCryptoQuotesRequest object. |
WithExchanges(IEnumerable<CryptoExchange>)
Creates new instance of HistoricalCryptoQuotesRequest object with the updated Exchanges list.
Declaration
public HistoricalCryptoQuotesRequest WithExchanges(IEnumerable<CryptoExchange> exchanges)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<CryptoExchange> | exchanges | Crypto exchanges to add into the list. |
Returns
Type | Description |
---|---|
HistoricalCryptoQuotesRequest | The new instance of the HistoricalCryptoQuotesRequest object. |
Explicit Interface Implementations
| Improve this Doc View SourceIHistoricalRequest<HistoricalCryptoQuotesRequest, IQuote>.GetValidatedRequestWithoutPageToken()
Declaration
HistoricalCryptoQuotesRequest IHistoricalRequest<HistoricalCryptoQuotesRequest, IQuote>.GetValidatedRequestWithoutPageToken()
Returns
Type | Description |
---|---|
HistoricalCryptoQuotesRequest |