From 5053a0a08fdc02587c936acabd3ec88d28de2e02 Mon Sep 17 00:00:00 2001 From: Diogo Sousa Date: Sun, 26 Feb 2023 17:07:34 +0000 Subject: [PATCH] len & set --- openbb_terminal/forex/forex_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbb_terminal/forex/forex_controller.py b/openbb_terminal/forex/forex_controller.py index 45281dfb44a..db77f6ef528 100644 --- a/openbb_terminal/forex/forex_controller.py +++ b/openbb_terminal/forex/forex_controller.py @@ -38,7 +38,7 @@ forex_data_path = os.path.join( os.path.dirname(__file__), os.path.join("data", "polygon_tickers.csv") ) tickers = pd.read_csv(forex_data_path).iloc[:, 0].to_list() -FX_TICKERS = tickers + [t[-3:] + t[:3] for t in tickers] +FX_TICKERS = tickers + list(set([t[-3:] + t[:3] for t in tickers if len(t) == 6])) class ForexController(BaseController):