Skip to content

Commit f116fd4

Browse files
committed
black formatting
1 parent 917feb7 commit f116fd4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/tools/fetch_balance.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,7 @@ def get_user_info(api_keys: Dict[str, Any], user: str) -> Dict[str, Any]:
4949
def build_exchange(user_info: Dict[str, Any]) -> ccxt.Exchange:
5050
# Accept multiple possible key names for convenience
5151
exchange_id = (
52-
user_info.get("exchange")
53-
or user_info.get("exchange_id")
54-
or user_info.get("exchangeId")
52+
user_info.get("exchange") or user_info.get("exchange_id") or user_info.get("exchangeId")
5553
)
5654
if not exchange_id:
5755
raise KeyError("missing 'exchange' in user info")
@@ -73,11 +71,7 @@ def build_exchange(user_info: Dict[str, Any]) -> ccxt.Exchange:
7371

7472
api_key = user_info.get("apiKey") or user_info.get("key") or user_info.get("apikey")
7573
secret = user_info.get("secret") or user_info.get("apiSecret") or user_info.get("apisecret")
76-
password = (
77-
user_info.get("password")
78-
or user_info.get("pwd")
79-
or user_info.get("passphrase")
80-
)
74+
password = user_info.get("password") or user_info.get("pwd") or user_info.get("passphrase")
8175

8276
params = {"enableRateLimit": True}
8377
# Allow passing extra ccxt params through user_info if desired

0 commit comments

Comments
 (0)