Static class contains common utility methods specific to symbols representing the option contracts
More...
Static class contains common utility methods specific to symbols representing the option contracts
Definition at line 26 of file OptionSymbol.cs.
◆ IsStandardContract()
static bool QuantConnect.Securities.Option.OptionSymbol.IsStandardContract |
( |
Symbol |
symbol | ) |
|
|
static |
Returns true if the option is a standard contract that expires 3rd Friday of the month
- Parameters
-
- Returns
Definition at line 35 of file OptionSymbol.cs.
◆ IsStandard()
static bool QuantConnect.Securities.Option.OptionSymbol.IsStandard |
( |
Symbol |
symbol | ) |
|
|
static |
Returns true if the option is a standard contract that expires 3rd Friday of the month
- Parameters
-
- Returns
Definition at line 45 of file OptionSymbol.cs.
◆ IsWeekly()
static bool QuantConnect.Securities.Option.OptionSymbol.IsWeekly |
( |
Symbol |
symbol | ) |
|
|
static |
Returns true if the option is a weekly contract that expires on Friday , except 3rd Friday of the month
- Parameters
-
- Returns
Definition at line 65 of file OptionSymbol.cs.
◆ MapToUnderlying()
static string QuantConnect.Securities.Option.OptionSymbol.MapToUnderlying |
( |
string |
optionTicker, |
|
|
SecurityType |
securityType |
|
) |
| |
|
static |
Maps the option ticker to it's underlying
- Parameters
-
optionTicker | The option ticker to map |
securityType | The security type of the option or underlying |
- Returns
- The underlying ticker
Definition at line 76 of file OptionSymbol.cs.
◆ GetLastDayOfTrading()
static DateTime QuantConnect.Securities.Option.OptionSymbol.GetLastDayOfTrading |
( |
Symbol |
symbol | ) |
|
|
static |
Returns the last trading date for the option contract
- Parameters
-
- Returns
Definition at line 95 of file OptionSymbol.cs.
◆ IsOptionContractExpired()
static bool QuantConnect.Securities.Option.OptionSymbol.IsOptionContractExpired |
( |
Symbol |
symbol, |
|
|
DateTime |
currentTimeUtc |
|
) |
| |
|
static |
Returns true if the option contract is expired at the specified time
- Parameters
-
symbol | The option contract symbol |
currentTimeUtc | The current time (UTC) |
- Returns
- True if the option contract is expired at the specified time, false otherwise
Definition at line 129 of file OptionSymbol.cs.
The documentation for this class was generated from the following file: