From e8f37666ea2223d43c675bb4d002e3a2af40614d Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 5 Sep 2019 20:02:18 +0200 Subject: [PATCH] Fix Problem when ccxt reports None as values --- freqtrade/rpc/rpc.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/rpc/rpc.py b/freqtrade/rpc/rpc.py index 8112b33bf..213812a70 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -294,9 +294,9 @@ class RPC(object): total = total + est_btc output.append({ 'currency': coin, - 'free': balance['free'], - 'balance': balance['total'], - 'used': balance['used'], + 'free': balance['free'] if balance['free'] is not None else 0, + 'balance': balance['total'] if balance['total'] is not None else 0, + 'used': balance['used'] if balance['used'] is not None else 0, 'est_btc': est_btc, }) if total == 0.0: