From 18d258780079336b30311c2eb063faace711e43a Mon Sep 17 00:00:00 2001 From: Matthias Date: Tue, 26 May 2020 06:12:25 +0200 Subject: [PATCH] Address feedback --- freqtrade/rpc/rpc.py | 2 +- freqtrade/rpc/telegram.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/rpc/rpc.py b/freqtrade/rpc/rpc.py index c8d17c7b3..cf222a238 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -138,8 +138,8 @@ class RPC: close_profit=trade.close_profit or None, close_profit_perc=fmt_close_profit, current_rate=current_rate, - current_profit_perc=round(current_profit * 100, 2), current_profit=current_profit, + current_profit_perc=round(current_profit * 100, 2), open_order='({} {} rem={:.8f})'.format( order['type'], order['side'], order['remaining'] ) if order else None, diff --git a/freqtrade/rpc/telegram.py b/freqtrade/rpc/telegram.py index e09d5348d..37c1077a7 100644 --- a/freqtrade/rpc/telegram.py +++ b/freqtrade/rpc/telegram.py @@ -215,7 +215,7 @@ class Telegram(RPC): "*Open Rate:* `{open_rate:.8f}`", "*Close Rate:* `{close_rate}`" if r['close_rate'] else "", "*Current Rate:* `{current_rate:.8f}`", - "*Close Profit:* `{close_profit}`" if r['close_profit_perc'] else "", + "*Close Profit:* `{close_profit_perc}`" if r['close_profit_perc'] else "", "*Current Profit:* `{current_profit_perc:.2f}%`", # Adding initial stoploss only if it is different from stoploss