mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-06 01:12:27 +00:00
* fix(docs): added margin between sections * feat: removed unused files; updated ga * fix: juan stuff doesnt work * fix: random fix * moon at noon * fix: update docusaurus config * Update controller_doc_classes.py * fix: temp fix * fix: temp fix * Update controller_doc_classes.py * fix: remove old content * fix: taggfix * init * fix: styling and moved file * Update generate_terminal_markdown.py * fix: removed unused images * fix: port new files * Update generate_sdk_markdown.py * Update controller_doc_classes.py Co-authored-by: teh_coderer <me@tehcoderer.com>
1.0 KiB
Vendored
1.0 KiB
Vendored
title, description
| title | description |
|---|---|
| chains | OpenBB SDK Function |
chains
Get Option Chain For A Stock. No greek data is returned
Source Code: [link]
openbb.stocks.options.chains(symbol: str, source: str = "Nasdaq", expiration: str | None = None)
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 |
| expiration | str | Date to get chain for. By default returns all dates | None | True |
Returns
| Type | Description |
|---|---|
| pd.DataFrame | Dataframe of full option chain. |
Examples
To get a specific expiration date, use the expiration parameter
from openbb_terminal.sdk import openbb
aapl_option_chain = openbb.stocks.options.chains("AAPL", source = "Nasdaq")