mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
chore: Support apiKey as config value
(aligns secret configuration with ccxt)
This commit is contained in:
parent
b9c2868dff
commit
5b2b5285ed
|
@ -14,6 +14,7 @@ def sanitize_config(config: Config, *, show_sensitive: bool = False) -> Config:
|
|||
return config
|
||||
keys_to_remove = [
|
||||
"exchange.key",
|
||||
"exchange.apiKey",
|
||||
"exchange.secret",
|
||||
"exchange.password",
|
||||
"exchange.uid",
|
||||
|
|
|
@ -338,7 +338,7 @@ class Exchange:
|
|||
raise OperationalException(f"Exchange {name} is not supported by ccxt")
|
||||
|
||||
ex_config = {
|
||||
"apiKey": exchange_config.get("key"),
|
||||
"apiKey": exchange_config.get("apiKey", exchange_config.get("key")),
|
||||
"secret": exchange_config.get("secret"),
|
||||
"password": exchange_config.get("password"),
|
||||
"uid": exchange_config.get("uid", ""),
|
||||
|
|
Loading…
Reference in New Issue
Block a user