StockLeg

Models & Types · AiDotNet.Finance.Options

An optional stock leg (covered strategies pair stock with options).

Implements: IEquatable<StockLeg>

Constructors

Constructor Summary
StockLeg(OptionTradeAction Action, int Shares) An optional stock leg (covered strategies pair stock with options).

Properties

Property Summary
OptionTradeAction Action { get; set; }
int Shares { get; set; } The number of shares, a non-negative magnitude; the direction comes from Action.
int SignedShares { get; } Share count, positive for a long (bought) leg and negative for a short (sold) one.

Methods

Method Summary
StockLeg <Clone>$()
bool Equals(StockLeg other)
bool Equals(object obj)
bool op_Equality(StockLeg left, StockLeg right)
bool op_Inequality(StockLeg left, StockLeg right)
int GetHashCode()
string ToString()
void Deconstruct(OptionTradeAction Action, int Shares)