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
|
total = total + est_btc
|
||||||
output.append({
|
output.append({
|
||||||
'currency': coin,
|
'currency': coin,
|
||||||
'free': balance['free'],
|
'free': balance['free'] if balance['free'] is not None else 0,
|
||||||
'balance': balance['total'],
|
'balance': balance['total'] if balance['total'] is not None else 0,
|
||||||
'used': balance['used'],
|
'used': balance['used'] if balance['used'] is not None else 0,
|
||||||
'est_btc': est_btc,
|
'est_btc': est_btc,
|
||||||
})
|
})
|
||||||
if total == 0.0:
|
if total == 0.0:
|
||||||
|
Loading…
Reference in New Issue
Block a user