add tests for balance from get-tickers

This commit is contained in:
Matthias
2019-11-14 20:12:41 +01:00
parent 8c64be3cfd
commit 62d50f512d
5 changed files with 75 additions and 58 deletions

View File

@@ -301,7 +301,11 @@ class RPC:
""" Returns current account balance per crypto """
output = []
total = 0.0
tickers = self._freqtrade.exchange.get_tickers()
try:
tickers = self._freqtrade.exchange.get_tickers()
except (TemporaryError, DependencyException):
raise RPCException('Error getting current tickers.')
for coin, balance in self._freqtrade.exchange.get_balances().items():
if not balance['total']:
continue