Class OptionContractsRequest
Encapsulates request parameters for ListOptionContractsAsync(OptionContractsRequest, CancellationToken) call.
Inheritance
Inherited Members
Namespace: Alpaca.Markets
Assembly: Alpaca.Markets.dll
Syntax
public sealed class OptionContractsRequest
Constructors
| Improve this Doc View SourceOptionContractsRequest()
Creates new instance of OptionContractsRequest object.
Declaration
public OptionContractsRequest()
OptionContractsRequest(IEnumerable<String>)
Creates new instance of OptionContractsRequest object.
Declaration
public OptionContractsRequest(IEnumerable<String> underlyingSymbols)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | underlyingSymbols | The symbols list of the underlying asset for filtering. |
OptionContractsRequest(String)
Creates new instance of OptionContractsRequest object.
Declaration
public OptionContractsRequest(String underlyingSymbol)
Parameters
Type | Name | Description |
---|---|---|
String | underlyingSymbol | The symbol of the underlying asset for filtering. |
Properties
| Improve this Doc View SourceAssetStatus
Gets or sets filter by the asset status. By default, only active contracts are returned.
Declaration
public AssetStatus? AssetStatus { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<AssetStatus> |
ExpirationDateEqualTo
Gets or sets filter by the exact option contract expiration date.
Declaration
public DateOnly? ExpirationDateEqualTo { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateOnly> |
ExpirationDateGreaterThanOrEqualTo
Gets or sets filter by the expiration date greater than or equal to the specified value.
Declaration
public DateOnly? ExpirationDateGreaterThanOrEqualTo { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateOnly> |
ExpirationDateLessThanOrEqualTo
Gets or sets filter by the expiration date less than or equal to the specified value.
Declaration
public DateOnly? ExpirationDateLessThanOrEqualTo { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateOnly> |
OptionStyle
Gets or sets filter the option contract execution style.
Declaration
public OptionStyle? OptionStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<OptionStyle> |
OptionType
Gets or sets filter the option contract type.
Declaration
public OptionType? OptionType { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<OptionType> |
Pagination
Gets the pagination parameters for the request (page size and token).
Declaration
public Pagination Pagination { get; }
Property Value
Type | Description |
---|---|
Pagination |
RootSymbol
Gets or sets filter ty the root symbol.
Declaration
public String? RootSymbol { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<String> |
StrikePriceGreaterThanOrEqualTo
Gets or sets filter by the strike price greater than or equal to the specified value.
Declaration
public Decimal? StrikePriceGreaterThanOrEqualTo { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
StrikePriceLessThanOrEqualTo
Gets or sets filter by the strike price less than or equal to the specified value.
Declaration
public Decimal? StrikePriceLessThanOrEqualTo { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Decimal> |
UnderlyingSymbols
Gets the symbols list of the underlying asset for filtering.
Declaration
public IReadOnlyCollection<String> UnderlyingSymbols { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<String> |