diff --git a/openbb_terminal/forex/forex_controller.py b/openbb_terminal/forex/forex_controller.py index 1ef383d19c73..1be022c09dd3 100644 --- a/openbb_terminal/forex/forex_controller.py +++ b/openbb_terminal/forex/forex_controller.py @@ -37,7 +37,8 @@ forex_data_path = os.path.join( os.path.dirname(__file__), os.path.join("data", "polygon_tickers.csv") ) -FX_TICKERS = pd.read_csv(forex_data_path).iloc[:, 0].to_list() +tickers = pd.read_csv(forex_data_path).iloc[:, 0].to_list() +FX_TICKERS = list(set(tickers + [t[-3:] + t[:3] for t in tickers if len(t) == 6])) class ForexController(BaseController): @@ -73,7 +74,6 @@ def __init__(self, queue: Optional[List[str]] = None): if session and obbff.USE_PROMPT_TOOLKIT: choices: dict = self.choices_default - choices["load"].update({c: {} for c in FX_TICKERS}) self.completer = NestedCompleter.from_nested_dict(choices)