Class HistoricalRequestBase
Encapsulates base logic for all historical data requests on Alpaca Data API v2.
Inheritance
Inherited Members
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public abstract class HistoricalRequestBase
Constructors
| Improve this Doc View SourceHistoricalRequestBase(IEnumerable<String>, IInclusiveTimeInterval)
Creates new instance of HistoricalRequestBase object.
Declaration
protected HistoricalRequestBase(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. |
HistoricalRequestBase(IEnumerable<String>, Interval<DateTime>)
Creates new instance of HistoricalRequestBase object.
Declaration
protected HistoricalRequestBase(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. |
HistoricalRequestBase(IEnumerable<String>, DateTime, DateTime)
Creates new instance of HistoricalRequestBase object.
Declaration
protected HistoricalRequestBase(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 SourceLastPathSegment
Gets the last part of the full REST endpoint URL path.
Declaration
protected abstract String LastPathSegment { get; }
Property Value
| Type | Description |
|---|---|
| String |
Pagination
Gets the pagination parameters for the request (page size and token).
Declaration
public Pagination Pagination { get; }
Property Value
| Type | Description |
|---|---|
| Pagination |
SortDirection
Gets or sets the result sorting direction (sort fields is timestamp).
Declaration
public SortDirection? SortDirection { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<SortDirection> |
Symbol
Gets asset symbol for data retrieval.
Declaration
public String Symbol { get; }
Property Value
| Type | Description |
|---|---|
| String |
Symbols
Gets asset symbols list for data retrieval.
Declaration
public IReadOnlyCollection<String> Symbols { get; }
Property Value
| Type | Description |
|---|---|
| IReadOnlyCollection<String> |
TimeInterval
Gets inclusive date interval for filtering items in response.
Declaration
public Interval<DateTime> TimeInterval { get; }
Property Value
| Type | Description |
|---|---|
| Alpaca.Markets.Interval<DateTime> |