expirations
Get Option Chain Expirations
Source Code: [link]
openbb.stocks.options.expirations(symbol: str, source: str = "Nasdaq")
Parameters
| Name | Type | Description | Default | Optional |
|---|---|---|---|---|
| symbol | str | Symbol to get chain for | None | False |
| source | str | Source to get data from, by default "Nasdaq" | Nasdaq | True |
Returns
| Type | Description |
|---|---|
| pd.DataFrame | Dataframe of full option chain. |
Examples
from openbb_terminal.sdk import openbb
SPX_expirations = openbb.stocks.options.expirations("SPX", source = "Tradier")