Skip to content

BaseChains

QuantConnect.Data.Market.BaseChains

BaseChains()
BaseChains(flatten: bool)
BaseChains(time: Union[datetime, date], flatten: bool)

Bases: Generic[QuantConnect_Data_Market_BaseChains_T, QuantConnect_Data_Market_BaseChains_TContract, QuantConnect_Data_Market_BaseChains_TContractsCollection], DataDictionary[QuantConnect_Data_Market_BaseChains_T]

Collection of BaseChain{T, TContractsCollection} keyed by canonical option symbol

Creates a new instance of the BaseChains{T, TContract, TContractsCollection} dictionary

data_frame

data_frame: Any

The data frame representation of the option chains

time

time: datetime

Gets or sets the time associated with this collection of data

__getitem__

__getitem__(
    symbol: Union[Symbol, str, BaseContract],
) -> QuantConnect_Data_Market_DataDictionary_T

Gets or sets the element with the specified key.

__setitem__

__setitem__(
    symbol: Union[Symbol, str, BaseContract],
    value: QuantConnect_Data_Market_DataDictionary_T,
) -> None

Gets or sets the element with the specified key.

get_value

get_value(
    key: Union[Symbol, str, BaseContract],
) -> QuantConnect_Data_Market_DataDictionary_T

Gets the value associated with the specified key.