Support accountId as exchange secret

This commit is contained in:
Matthias 2024-07-16 18:26:51 +02:00
parent 5c371133a0
commit f5a92fcfc5
2 changed files with 2 additions and 0 deletions

View File

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

View File

@ -342,6 +342,7 @@ 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", ""),
"accountId": exchange_config.get("accountId", ""),
# DEX attributes: # DEX attributes:
"walletAddress": exchange_config.get("walletAddress"), "walletAddress": exchange_config.get("walletAddress"),
"privateKey": exchange_config.get("privateKey"), "privateKey": exchange_config.get("privateKey"),