Show ifferent message for balance in dry-run

This commit is contained in:
Matthias 2019-06-27 07:06:11 +02:00
parent 4459fdf1b1
commit 98681b78b4
1 changed files with 4 additions and 1 deletions

View File

@ -298,7 +298,10 @@ class RPC(object):
'est_btc': est_btc,
})
if total == 0.0:
raise RPCException('all balances are zero')
if self._freqtrade.config.get('dry_run', False):
raise RPCException('Running in Dry Run, balances are not available.')
else:
raise RPCException('All balances are zero.')
symbol = fiat_display_currency
value = self._fiat_converter.convert_amount(total, 'BTC',