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:
Danglewood
2023-07-05 10:47:43 -07:00
committed by GitHub
parent 598e745beb
commit ee60f0efad
3 changed files with 17197 additions and 1 deletions

11
examples/README.md vendored
View File

@@ -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

File diff suppressed because it is too large Load Diff

View File

@@ -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)