From 26468bef83d2851f9e99182a7f6b789a6d1ef846 Mon Sep 17 00:00:00 2001 From: gcarq Date: Tue, 31 Oct 2017 00:29:22 +0100 Subject: [PATCH] balance: filter currencies with 0.0 balances --- freqtrade/rpc/telegram.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index dcdefaee6..4cf71586f 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -205,14 +205,14 @@ def _profit(bot: Bot, update: Update) -> None: @authorized_only def _balance(bot: Bot, update: Update) -> None: """ - Hander for /balance + Handler for /balance Returns current account balance per crypto """ output = "" - balances = exchange.get_balances() - for currency in balances: + if not currency['Balance'] and not currency['Available'] and not currency['Pending']: + continue output += """*Currency*: {Currency} *Available*: {Available} *Balance*: {Balance}