Class HistoricalCryptoRequestBase
Encapsulates base logic for all historical crypto data requests on Alpaca Data API v2.
Inheritance
Inherited Members
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public abstract class HistoricalCryptoRequestBase : HistoricalRequestBase
Constructors
| Improve this Doc View SourceHistoricalCryptoRequestBase(IEnumerable<String>, IInclusiveTimeInterval)
Creates new instance of HistoricalRequestBase object.
Declaration
protected HistoricalCryptoRequestBase(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. |
HistoricalCryptoRequestBase(IEnumerable<String>, IInclusiveTimeInterval, IEnumerable<CryptoExchange>)
Creates new instance of HistoricalCryptoRequestBase object.
Declaration
protected HistoricalCryptoRequestBase(IEnumerable<String> symbols, IInclusiveTimeInterval timeInterval, IEnumerable<CryptoExchange> exchanges)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | symbols | Asset symbols for data retrieval. |
IInclusiveTimeInterval | timeInterval | Inclusive time interval for filtering items in response. |
IEnumerable<CryptoExchange> | exchanges | Crypto exchanges list for data retrieval. |
HistoricalCryptoRequestBase(IEnumerable<String>, Interval<DateTime>)
Creates new instance of HistoricalCryptoRequestBase object.
Declaration
protected HistoricalCryptoRequestBase(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. |
HistoricalCryptoRequestBase(IEnumerable<String>, Interval<DateTime>, IEnumerable<CryptoExchange>)
Creates new instance of HistoricalCryptoRequestBase object.
Declaration
protected HistoricalCryptoRequestBase(IEnumerable<String> symbols, Interval<DateTime> timeInterval, IEnumerable<CryptoExchange> exchanges)
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. |
IEnumerable<CryptoExchange> | exchanges | Crypto exchanges list for data retrieval. |
HistoricalCryptoRequestBase(IEnumerable<String>, DateTime, DateTime)
Creates new instance of HistoricalCryptoRequestBase object.
Declaration
protected HistoricalCryptoRequestBase(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. |
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> |