get_option_chain_info
Returns the option expiration dates available for a given stock.
Syntax
Fields
Description
symbol(str)
Symbol of stock
def get_option_chain_info(self, symbol: str = None): Returns
Returns a dictionary containing the following keys and values:
chain_id: str, ID of the option chain.exp_dates: list, list of expiration dates available for the stock. Dates are a pythondatetimeobject in UTC timezone.multiplier: int, multiplier for the option chain.
Raises
- An
Exceptionis raised if the broker fails to process the request for any reason. - If the broker does not support options trading, an
NotImplementedErroris raised.