Skip to content

Commit

Permalink
Merge pull request #4333 from OpenBB-finance/hotfix/4095
Browse files Browse the repository at this point in the history
Add reverse fx choices to forex load
  • Loading branch information
jmaslek authored Feb 26, 2023
2 parents 5b05c9c + 112403e commit 0d5fa09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openbb_terminal/forex/forex_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 0d5fa09

Please sign in to comment.