diff --git a/rpc/telegram.py b/rpc/telegram.py index 44d8addde..e3da0a00d 100644 --- a/rpc/telegram.py +++ b/rpc/telegram.py @@ -284,7 +284,11 @@ def _performance(bot: Bot, update: Update) -> None: .order_by('profit_sum DESC') \ .all() - stats = '\n'.join('{}. {}\t{}%'.format(i + 1, pair, round(rate, 2)) for i, (pair, rate) in enumerate(pair_rates)) + stats = '\n'.join('{index}. {pair}\t{profit:.2f}%'.format( + index=i + 1, + pair=pair, + profit=round(rate, 2) + ) for i, (pair, rate) in enumerate(pair_rates)) message = 'Performance:\n{}\n'.format(stats) logger.debug(message)