Updated unittests

Co-Authored-By: மனோஜ்குமார் பழனிச்சாமி <smartmanoj42857@gmail.com>
This commit is contained in:
Kavinkumar
2022-03-06 17:21:34 +05:30
parent 117e966f34
commit 498aa9c8be
4 changed files with 7 additions and 3 deletions

View File

@@ -500,7 +500,8 @@ class Telegram(RPCHandler):
])
if r['is_open']:
lines.append("*Realized Prodir:* `{realized_profit:.8f}`")
if r.get('realized_profit'):
lines.append("*Realized Profit:* `{realized_profit:.8f}`")
if (r['stop_loss_abs'] != r['initial_stop_loss_abs']
and r['initial_stop_loss_ratio'] is not None):
# Adding initial stoploss only if it is different from stoploss