From a6428a553397c2829ab969310d8fb32cbc1876af Mon Sep 17 00:00:00 2001 From: Colin Delahunty <72827203+colin99d@users.noreply.github.com> Date: Mon, 17 Oct 2022 23:34:05 +0200 Subject: [PATCH] Allows oanda menu to be entered and updates no key message (#2869) Co-authored-by: James Maslek --- openbb_terminal/decorators.py | 2 +- openbb_terminal/forex/forex_controller.py | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/openbb_terminal/decorators.py b/openbb_terminal/decorators.py index d44e3f1d19d..df5761e561a 100644 --- a/openbb_terminal/decorators.py +++ b/openbb_terminal/decorators.py @@ -105,7 +105,7 @@ def check_api_key(api_keys): undefined_apis_name = ", ".join(undefined_apis) console.print( f"[red]{undefined_apis_name} not defined. " - "Set API Keys in config_terminal.py or under keys menu.[/red]\n" + "Set API Keys in ~/.openbb_terminal/.env or under keys menu.[/red]\n" ) # pragma: allowlist secret return None return func(*args, **kwargs) diff --git a/openbb_terminal/forex/forex_controller.py b/openbb_terminal/forex/forex_controller.py index 381e735b84b..4584576e926 100644 --- a/openbb_terminal/forex/forex_controller.py +++ b/openbb_terminal/forex/forex_controller.py @@ -45,7 +45,15 @@ FX_TICKERS = pd.read_csv(forex_data_path).iloc[:, 0].to_list() class ForexController(BaseController): """Forex Controller class.""" - CHOICES_COMMANDS = ["load", "quote", "candle", "resources", "fwd", "forecast"] + CHOICES_COMMANDS = [ + "load", + "quote", + "candle", + "resources", + "fwd", + "forecast", + "oanda", + ] CHOICES_MENUS = ["ta", "qa", "Oanda"] RESOLUTION = ["i", "d", "w", "m"]