Skip to content

Commit

Permalink
Fix Problem when ccxt reports None as values
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Sep 5, 2019
1 parent e2e0015 commit e8f3766
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions freqtrade/rpc/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ def _rpc_balance(self, fiat_display_currency: str) -> Dict:
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:
Expand Down

0 comments on commit e8f3766

Please sign in to comment.