fetch_chain_data
Returns the option chain for the specified symbol.
Syntax
Fields
Description
symbol(str)
Stock symbol. Cannot use crypto.
date(Union[str, dt.datetime])
Expiration date.
def fetch_chain_data(self, symbol: str, date: Union[str, dt.datetime]) -> pd.DataFrame:
Returns
Returns a dataframe in the following format:
exp_date strike type
OCC
--- --- --- ---
exp_date should be a timezone-aware datetime object localized to UTC.
Raises
- A
NotImplementedError
is raised if the method is not supported.