mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-12-14 11:51:19 +00:00
chore: support snake_case for api keys
This commit is contained in:
@@ -353,14 +353,18 @@ class Exchange:
|
||||
raise OperationalException(f"Exchange {name} is not supported by ccxt")
|
||||
|
||||
ex_config = {
|
||||
"apiKey": exchange_config.get("apiKey", exchange_config.get("key")),
|
||||
"apiKey": exchange_config.get(
|
||||
"api_key", exchange_config.get("apiKey", exchange_config.get("key"))
|
||||
),
|
||||
"secret": exchange_config.get("secret"),
|
||||
"password": exchange_config.get("password"),
|
||||
"uid": exchange_config.get("uid", ""),
|
||||
"accountId": exchange_config.get("accountId", ""),
|
||||
"accountId": exchange_config.get("account_id", exchange_config.get("accountId", "")),
|
||||
# DEX attributes:
|
||||
"walletAddress": exchange_config.get("walletAddress"),
|
||||
"privateKey": exchange_config.get("privateKey"),
|
||||
"walletAddress": exchange_config.get(
|
||||
"wallet_address", exchange_config.get("walletAddress")
|
||||
),
|
||||
"privateKey": exchange_config.get("private_key", exchange_config.get("privateKey")),
|
||||
}
|
||||
if ccxt_kwargs:
|
||||
logger.info("Applying additional ccxt config: %s", ccxt_kwargs)
|
||||
|
||||
Reference in New Issue
Block a user