[docs]@dataclassclassCurrentSchedule:"""Trading session info depending on current date and time Attributes: session: Current session info """session:TradingSchedule
[docs]@dataclassclassSecurity:"""Represents security Attributes: symbol: Security symbol description: Description of security """symbol:strdescription:str
[docs]@dataclassclassSecuritiesPage:"""Page of securities Attributes: trades: List of securities count: Total count of securities """trades:list[Security]count:int@propertydefsecurities(self)->list[Security]:""" Alias for returned list as API returns it as "trades". Should be used instead of "trades" attribute. Returns: List of securities """returnself.trades
[docs]@dataclassclassTradesPage:"""Represents one page of trades Attributes: trades: List of trades count: Total count of trades """trades:list[Trade]count:int
[docs]@dataclass(frozen=True)classOptionSeries:""" Represents option series for the security Attributes: series: Option series expirations: Array of expiration dates contract_size: Contract size value """series:strexpirations:list[datetime.date]contract_size:Decimal
[docs]@dataclass(frozen=True)classOptionContract:""" Single option contract for the security Attributes: symbol: Option symbol type: Option type strike: Option strike value """symbol:strtype:OptionTypestrike:Decimal
[docs]@dataclass(frozen=True)classOptionChain:""" Option contracts for specified symbol, expiration date and series Attributes: contract_size: Contract size value style: Option style settlement: Settlement type chain: Array of option contracts """contract_size:Decimalstyle:OptionStylesettlement:OptionSettlementTypechain:list[OptionContract]