Skip to content

Commit

Permalink
Feature/options_views: Add a Variety of Views/Charts to Extend the Op…
Browse files Browse the repository at this point in the history
…tionsChains Class (#5222)

* add options_chains_view

* vsurf charts

* skew for strike vs contract

* doc string

* add chart_volatility

* linting

* codespell

* mypy

* types

* tmx mypy

* update test file

* add synthetic long/short to strategies

* updates test_options_chains_model.py

* updates some docstrings

* update documentation

* actually commit the documentation page

* update documentation screenshots

* try catch for 403 error

* add tests for options_chains_view

* int64

* SPX error handling

* add cboe options dashboard for terminal

* codespell

* enable mouse scroll wheel zoom for charts

* declare key values for all widgets

* add some more streamlit charts and tables

* fix test_yfinance_view.py

* conflict resolution

* test

---------

Co-authored-by: James Maslek <[email protected]>
  • Loading branch information
deeleeramone and jmaslek authored Aug 3, 2023
1 parent d575c5d commit f1eee44
Show file tree
Hide file tree
Showing 56 changed files with 53,251 additions and 3,140 deletions.
9 changes: 8 additions & 1 deletion openbb_terminal/dashboards/dashboards_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class DashboardsController(BaseController):
"futures",
"forecasting",
"indicators",
"options",
]
PATH = "/dashboards/"

Expand Down Expand Up @@ -75,6 +76,7 @@ def print_help(self):
mt.add_cmd("forecasting")
mt.add_cmd("futures")
mt.add_cmd("shortdata")
mt.add_cmd("options")
console.print(text=mt.menu_text, menu="Dashboards")

@log_start_end(log=logger)
Expand Down Expand Up @@ -112,6 +114,11 @@ def call_indicators(self, other_args: List[str]):
"""Process indicators command."""
self.create_call_streamlit(other_args, "Indicators")

@log_start_end(log=logger)
def call_options(self, other_args: List[str]):
"""Process indicators command."""
self.create_call_streamlit(other_args, "Options")

def kill_processes(self) -> None:
"""Kills all processes started by this class."""
for process in [p for p in self.processes if p.is_running()]:
Expand Down Expand Up @@ -250,7 +257,7 @@ def create_call_streamlit(
if self.check_processes():
plots_backend().send_url(
url=self.check_processes(name),
title=f"{filename.title()} Dashboard",
title=f"{filename.replace('_', ' ').title()} Dashboard",
)


Expand Down
Loading

0 comments on commit f1eee44

Please sign in to comment.