mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-27 03:33:24 +00:00
add docstrings
This commit is contained in:
@@ -119,6 +119,7 @@ class EconController:
|
||||
fred_view.get_fred_data(other_args, cmd)
|
||||
|
||||
def call_VIX(self, other_args: List[str], cmd: str):
|
||||
"""Process a VIX Call."""
|
||||
if cmd == "view":
|
||||
vix_view.view_vix(other_args)
|
||||
else:
|
||||
|
||||
@@ -18,7 +18,16 @@ register_matplotlib_converters()
|
||||
|
||||
|
||||
def view_vix(other_args: List[str]):
|
||||
|
||||
"""
|
||||
Plot vix from a starting date using yfinance
|
||||
Parameters
|
||||
----------
|
||||
other_args: List[str]
|
||||
List of argparse arguments
|
||||
Returns
|
||||
-------
|
||||
Plots VIX historical data
|
||||
"""
|
||||
parser = argparse.ArgumentParser(prog="vix_plot", add_help=False)
|
||||
parser.add_argument(
|
||||
"-s",
|
||||
|
||||
Reference in New Issue
Block a user