Allows oanda menu to be entered and updates no key message (#2869)

Co-authored-by: James Maslek <jmaslek11@gmail.com>
This commit is contained in:
Colin Delahunty
2022-10-17 23:34:05 +02:00
committed by GitHub
parent 453832254c
commit a6428a5533
2 changed files with 10 additions and 2 deletions

View File

@@ -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)

View File

@@ -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"]