chore: add support for "walletAddress" and "privateKey"

part of #10377
This commit is contained in:
Matthias
2024-07-14 09:05:25 +02:00
parent 5b2b5285ed
commit 1c46b287d7
2 changed files with 5 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ def sanitize_config(config: Config, *, show_sensitive: bool = False) -> Config:
"exchange.secret", "exchange.secret",
"exchange.password", "exchange.password",
"exchange.uid", "exchange.uid",
"exchange.walletAddress",
"exchange.privateKey",
"telegram.token", "telegram.token",
"telegram.chat_id", "telegram.chat_id",
"discord.webhook_url", "discord.webhook_url",

View File

@@ -342,6 +342,9 @@ class Exchange:
"secret": exchange_config.get("secret"), "secret": exchange_config.get("secret"),
"password": exchange_config.get("password"), "password": exchange_config.get("password"),
"uid": exchange_config.get("uid", ""), "uid": exchange_config.get("uid", ""),
# DEX attributes:
"walletAddress": exchange_config.get("walletAddress"),
"privateKey": exchange_config.get("privateKey"),
} }
if ccxt_kwargs: if ccxt_kwargs:
logger.info("Applying additional ccxt config: %s", ccxt_kwargs) logger.info("Applying additional ccxt config: %s", ccxt_kwargs)