OptionLeg
Models & Types · AiDotNet.Finance.Options
One option leg of a strategy. Quantity is in CONTRACTS (each = ContractMultiplier shares).
Implements: IEquatable<OptionLeg>
Constructors
| Constructor |
Summary |
OptionLeg(OptionRight Right, OptionTradeAction Action, double Strike, double ExpiryYears, int Contracts) |
One option leg of a strategy. |
Properties
| Property |
Summary |
OptionRight Right { get; set; } |
|
OptionTradeAction Action { get; set; } |
|
double ExpiryYears { get; set; } |
|
double Strike { get; set; } |
|
int Contracts { get; set; } |
|
int SignedContracts { get; } |
Signed share-equivalent exposure sign: long call / short put are bullish (+), etc. |
Methods
| Method |
Summary |
OptionLeg <Clone>$() |
|
bool Equals(OptionLeg other) |
|
bool Equals(object obj) |
|
bool op_Equality(OptionLeg left, OptionLeg right) |
|
bool op_Inequality(OptionLeg left, OptionLeg right) |
|
int GetHashCode() |
|
string ToString() |
|
void Deconstruct(OptionRight Right, OptionTradeAction Action, double Strike, double ExpiryYears, int Contracts) |
|
Fields
| Field |
Summary |
int ContractMultiplier |
The contract multiplier: units of the underlying per contract. |