add docstrings

This commit is contained in:
Jamie
2021-04-26 15:27:27 -04:00
parent 8e14bc5544
commit 267cd80a07
2 changed files with 11 additions and 1 deletions

View File

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

View File

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