Skip to content

FutureOptionSymbol

QuantConnect.Securities.FutureOption.FutureOptionSymbol

Bases: Object

Static helper methods to resolve Futures Options Symbol-related tasks.

get_last_day_of_trading

get_last_day_of_trading(
    symbol: Union[Symbol, str, BaseContract],
) -> datetime

Gets the last day of trading, aliased to be the Futures options' expiry

Parameters:

Name Type Description Default
symbol Union[Symbol, str, BaseContract]

Futures Options Symbol

required

Returns:

Type Description
datetime

Last day of trading date.

is_standard

is_standard(_: Union[Symbol, str, BaseContract]) -> bool

Detects if the future option contract is standard, i.e. not weekly, not short-term, not mid-sized, etc.

Parameters:

Name Type Description Default
_ Union[Symbol, str, BaseContract]

Symbol

required

Returns:

Type Description
bool

true.