Class HistoricalCryptoBarsRequest
Encapsulates request parameters for ListHistoricalBarsAsync(TRequest, CancellationToken) and GetHistoricalBarsAsync(TRequest, CancellationToken) calls.
Inherited Members
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public sealed class HistoricalCryptoBarsRequest : HistoricalRequestBase, IHistoricalRequest<HistoricalCryptoBarsRequest, IBar>, IHistoricalRequest
Constructors
| Improve this Doc View SourceHistoricalCryptoBarsRequest(IEnumerable<String>, BarTimeFrame)
Creates new instance of HistoricalCryptoBarsRequest object.
Declaration
public HistoricalCryptoBarsRequest(IEnumerable<String> symbols, BarTimeFrame timeFrame)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | symbols | Asset symbols for data retrieval. |
Alpaca.Markets.BarTimeFrame | timeFrame | Type of time bars for retrieval. |
HistoricalCryptoBarsRequest(IEnumerable<String>, IInclusiveTimeInterval, BarTimeFrame)
Creates new instance of HistoricalCryptoBarsRequest object.
Declaration
public HistoricalCryptoBarsRequest(IEnumerable<String> symbols, IInclusiveTimeInterval timeInterval, BarTimeFrame timeFrame)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | symbols | Asset symbols for data retrieval. |
IInclusiveTimeInterval | timeInterval | Inclusive time interval for filtering items in response. |
Alpaca.Markets.BarTimeFrame | timeFrame | Type of time bars for retrieval. |
HistoricalCryptoBarsRequest(IEnumerable<String>, Interval<DateTime>, BarTimeFrame)
Creates new instance of HistoricalCryptoBarsRequest object.
Declaration
public HistoricalCryptoBarsRequest(IEnumerable<String> symbols, Interval<DateTime> timeInterval, BarTimeFrame timeFrame)
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. |
Alpaca.Markets.BarTimeFrame | timeFrame | Type of time bars for retrieval. |
HistoricalCryptoBarsRequest(IEnumerable<String>, DateTime, DateTime, BarTimeFrame)
Creates new instance of HistoricalCryptoBarsRequest object.
Declaration
public HistoricalCryptoBarsRequest(IEnumerable<String> symbols, DateTime from, DateTime into, BarTimeFrame timeFrame)
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. |
Alpaca.Markets.BarTimeFrame | timeFrame | Type of time bars for retrieval. |
HistoricalCryptoBarsRequest(String, BarTimeFrame)
Creates new instance of HistoricalCryptoBarsRequest object.
Declaration
public HistoricalCryptoBarsRequest(String symbol, BarTimeFrame timeFrame)
Parameters
Type | Name | Description |
---|---|---|
String | symbol | Asset symbol for data retrieval. |
Alpaca.Markets.BarTimeFrame | timeFrame | Type of time bars for retrieval. |
HistoricalCryptoBarsRequest(String, BarTimeFrame, IInclusiveTimeInterval)
Creates new instance of HistoricalCryptoBarsRequest object.
Declaration
public HistoricalCryptoBarsRequest(String symbol, BarTimeFrame timeFrame, IInclusiveTimeInterval timeInterval)
Parameters
Type | Name | Description |
---|---|---|
String | symbol | Asset symbol for data retrieval. |
Alpaca.Markets.BarTimeFrame | timeFrame | Type of time bars for retrieval. |
IInclusiveTimeInterval | timeInterval | Inclusive time interval for filtering items in response. |
HistoricalCryptoBarsRequest(String, BarTimeFrame, Interval<DateTime>)
Creates new instance of HistoricalCryptoBarsRequest object.
Declaration
public HistoricalCryptoBarsRequest(String symbol, BarTimeFrame timeFrame, Interval<DateTime> timeInterval)
Parameters
Type | Name | Description |
---|---|---|
String | symbol | Asset symbol for data retrieval. |
Alpaca.Markets.BarTimeFrame | timeFrame | Type of time bars for retrieval. |
Alpaca.Markets.Interval<DateTime> | timeInterval | Inclusive time interval for filtering items in response. |
HistoricalCryptoBarsRequest(String, DateTime, DateTime, BarTimeFrame)
Creates new instance of HistoricalCryptoBarsRequest object.
Declaration
public HistoricalCryptoBarsRequest(String symbol, DateTime from, DateTime into, BarTimeFrame timeFrame)
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. |
Alpaca.Markets.BarTimeFrame | timeFrame | Type of time bars for retrieval. |
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
| Improve this Doc View SourceTimeFrame
Gets type of time bars for retrieval.
Declaration
public BarTimeFrame TimeFrame { get; }
Property Value
Type | Description |
---|---|
Alpaca.Markets.BarTimeFrame |
Methods
| Improve this Doc View SourceWithExchanges(CryptoExchange[])
Creates new instance of HistoricalCryptoBarsRequest object with the updated Exchanges list.
Declaration
public HistoricalCryptoBarsRequest WithExchanges(params CryptoExchange[] exchanges)
Parameters
Type | Name | Description |
---|---|---|
CryptoExchange[] | exchanges | Crypto exchanges to add into the list. |
Returns
Type | Description |
---|---|
HistoricalCryptoBarsRequest | The new instance of the HistoricalCryptoBarsRequest object. |
WithExchanges(IEnumerable<CryptoExchange>)
Creates new instance of HistoricalCryptoBarsRequest object with the updated Exchanges list.
Declaration
public HistoricalCryptoBarsRequest WithExchanges(IEnumerable<CryptoExchange> exchanges)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<CryptoExchange> | exchanges | Crypto exchanges to add into the list. |
Returns
Type | Description |
---|---|
HistoricalCryptoBarsRequest | The new instance of the HistoricalCryptoBarsRequest object. |
Explicit Interface Implementations
| Improve this Doc View SourceIHistoricalRequest<HistoricalCryptoBarsRequest, IBar>.GetValidatedRequestWithoutPageToken()
Declaration
HistoricalCryptoBarsRequest IHistoricalRequest<HistoricalCryptoBarsRequest, IBar>.GetValidatedRequestWithoutPageToken()
Returns
Type | Description |
---|---|
HistoricalCryptoBarsRequest |