From 20de9a75f184f70f2dc8a593fd52ae0e3673ad94 Mon Sep 17 00:00:00 2001 From: James Simmons <53658028+simmonsj330@users.noreply.github.com> Date: Fri, 4 Nov 2022 21:22:38 -0400 Subject: [PATCH] capitalization fix (#3319) --- openbb_terminal/futures/futures_controller.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openbb_terminal/futures/futures_controller.py b/openbb_terminal/futures/futures_controller.py index b3554f6aff9..08d59cb89cb 100644 --- a/openbb_terminal/futures/futures_controller.py +++ b/openbb_terminal/futures/futures_controller.py @@ -81,8 +81,9 @@ class FuturesController(BaseController): self.choices["historical"]["-s"] = "--start" self.choices["historical"]["--expiry"] = {} self.choices["historical"]["-e"] = "--expiry" - self.choices["curve"] = {c: None for c in self.all_tickers} + self.choices["curve"]["--ticker"] = {c: None for c in self.all_tickers} + self.choices["curve"]["-t"] = "--ticker" self.completer = NestedCompleter.from_nested_dict(self.choices) # type: ignore @@ -224,7 +225,7 @@ class FuturesController(BaseController): "--ticker", dest="ticker", type=str, - choices=self.all_tickers, + default="", help="Future curve to be selected", metavar="Futures symbol", required="-h" not in other_args, @@ -237,9 +238,10 @@ class FuturesController(BaseController): export_allowed=EXPORT_ONLY_RAW_DATA_ALLOWED, raw=True, ) + if ns_parser: yfinance_view.display_curve( - ticker=ns_parser.ticker, + ticker=ns_parser.ticker.upper(), raw=ns_parser.raw, export=ns_parser.export, )