Class CorporateActionsRequest
Encapsulates request parameters for ListCorporateActionsAsync(CorporateActionsRequest, CancellationToken) call.
Inheritance
Implements
Inherited Members
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public sealed class CorporateActionsRequest : IHistoricalRequest<CorporateActionsRequest, ICorporateActionsResponse>, IHistoricalRequest
Properties
| Improve this Doc View SourceDateInterval
Gets the date range when searching corporate actions history (current day if empty).
Declaration
public Interval<DateOnly> DateInterval { get; }
Property Value
Type | Description |
---|---|
Alpaca.Markets.Interval<DateOnly> |
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> |
Symbols
Gets asset symbols list for data retrieval (all symbols if list is empty).
Declaration
public IReadOnlyCollection<String> Symbols { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<String> |
Types
Gets corporate action types list for data retrieval (all types if list is empty).
Declaration
public IReadOnlyCollection<CorporateActionFilterType> Types { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<CorporateActionFilterType> |
Methods
| Improve this Doc View SourceWithDateInterval(Interval<DateOnly>)
Sets the DateInterval filter value for the request.
Declaration
public CorporateActionsRequest WithDateInterval(Interval<DateOnly> dateInterval)
Parameters
Type | Name | Description |
---|---|---|
Alpaca.Markets.Interval<DateOnly> | dateInterval | The inclusive date interval for data retrieval. |
Returns
Type | Description |
---|---|
CorporateActionsRequest | Fluent interface - returns the modified request object. |
WithSymbol(String)
Adds a single symbol into the Symbols filter list.
Declaration
public CorporateActionsRequest WithSymbol(String symbol)
Parameters
Type | Name | Description |
---|---|---|
String | symbol | Asset symbol for data retrieval. |
Returns
Type | Description |
---|---|
CorporateActionsRequest | Fluent interface - returns the modified request object. |
WithSymbols(IEnumerable<String>)
Adds several symbols into the Symbols filter list.
Declaration
public CorporateActionsRequest WithSymbols(IEnumerable<String> symbols)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | symbols | Asset symbols for data retrieval. |
Returns
Type | Description |
---|---|
CorporateActionsRequest | Fluent interface - returns the modified request object. |
WithType(CorporateActionFilterType)
Adds a single item into the Types filter list.
Declaration
public CorporateActionsRequest WithType(CorporateActionFilterType type)
Parameters
Type | Name | Description |
---|---|---|
CorporateActionFilterType | type | Corporate action type for data retrieval. |
Returns
Type | Description |
---|---|
CorporateActionsRequest | Fluent interface - returns the modified request object. |
WithTypes(IEnumerable<CorporateActionFilterType>)
Adds several items into the Types filter list.
Declaration
public CorporateActionsRequest WithTypes(IEnumerable<CorporateActionFilterType> types)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<CorporateActionFilterType> | types | Corporate action types for data retrieval. |
Returns
Type | Description |
---|---|
CorporateActionsRequest | Fluent interface - returns the modified request object. |
Explicit Interface Implementations
| Improve this Doc View SourceIHistoricalRequest<CorporateActionsRequest, ICorporateActionsResponse>.GetValidatedRequestWithoutPageToken()
Declaration
CorporateActionsRequest IHistoricalRequest<CorporateActionsRequest, ICorporateActionsResponse>.GetValidatedRequestWithoutPageToken()
Returns
Type | Description |
---|---|
CorporateActionsRequest |