mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-28 12:13:11 +00:00
feature/examples-optionsChains: Add Notebook example: optionsChains (#5165)
* update README.md with optionsChains * uploads the notebook file * fix nasdaq load * Adds a cell for the IV skew smile --------- Co-authored-by: James Maslek <jmaslek11@gmail.com>
This commit is contained in:
11
examples/README.md
vendored
11
examples/README.md
vendored
@@ -48,3 +48,14 @@ This notebook demonstrates how to query the Federal Reserve Economic Database an
|
||||
- Perform arithmetic operations on a DataFrame.
|
||||
- Normalization methods for a series or DataFrame.
|
||||
- Simple processes for creating charts.
|
||||
|
||||
### optionsChains
|
||||
|
||||
This notebook demonstrates how to fetch and work with options chains data.
|
||||
|
||||
- Use the new method for loading options chains data.
|
||||
- Examine the differences of the data, between sources.
|
||||
- Calculate and visualize volume and open interest by strike and expiration.
|
||||
- Calculate and visualize the Net Delta Exposure, in dollars, by strike and expiration.
|
||||
- Visualize the term structure of the implied volatility skew.
|
||||
- Get tables with multiple single-leg options strategies.
|
||||
|
||||
17185
examples/optionsChains.ipynb
vendored
Normal file
17185
examples/optionsChains.ipynb
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@@ -200,7 +200,7 @@ class OptionsController(BaseController):
|
||||
self.current_price = last_price or 0.0
|
||||
elif self.source == "Nasdaq":
|
||||
self.current_price = nasdaq_model.get_underlying_price(self.ticker)[
|
||||
"lastPrice"
|
||||
"price"
|
||||
]
|
||||
elif self.source == "Intrinio":
|
||||
self.current_price = intrinio_model.get_last_price(self.ticker)
|
||||
|
||||
Reference in New Issue
Block a user