#3264 fixing some autocomplete on historical (#3295)

* #3264 fixing some autocomplete on historical

* fixing autocomplete on historical TICKER

Co-authored-by: James Maslek <jmaslek11@gmail.com>
This commit is contained in:
andrewkenreich
2022-11-04 10:20:57 -04:00
committed by GitHub
parent 3e792d75de
commit fd2dc55bd0

View File

@@ -75,6 +75,13 @@ class FuturesController(BaseController):
self.choices["about"] = self.ABOUT_CHOICES
self.choices["historical"] = {c: None for c in self.all_tickers}
self.choices["historical"]["--ticker"] = {c: None for c in self.all_tickers}
self.choices["historical"]["-t"] = "--ticker"
self.choices["historical"]["--start"] = {}
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.completer = NestedCompleter.from_nested_dict(self.choices) # type: ignore