Fix Problem when ccxt reports None as values
This commit is contained in:
parent
e2e0015119
commit
e8f37666ea
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user