From 3f84c37a79d4ef5f77656903898f31773bffb6f3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Mon, 26 Apr 2021 14:12:52 +0200 Subject: [PATCH] Fix wallet calls closes #4810 #4812 --- freqtrade/wallets.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/freqtrade/wallets.py b/freqtrade/wallets.py index bbbe5ba5e..d5f979c24 100644 --- a/freqtrade/wallets.py +++ b/freqtrade/wallets.py @@ -99,12 +99,13 @@ class Wallets: balances = self._exchange.get_balances() for currency in balances: - self._wallets[currency] = Wallet( - currency, - balances[currency].get('free', None), - balances[currency].get('used', None), - balances[currency].get('total', None) - ) + if isinstance(balances[currency], dict): + self._wallets[currency] = Wallet( + currency, + balances[currency].get('free', None), + balances[currency].get('used', None), + balances[currency].get('total', None) + ) # Remove currencies no longer in get_balances output for currency in deepcopy(self._wallets): if currency not in balances: