mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
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:
@@ -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)
|
||||
|
||||
@@ -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"]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user