|
|
|
|
@ -561,6 +561,7 @@ class Telegram(RPCHandler):
|
|
|
|
|
r['num_entries'] = len([o for o in r['orders'] if o['ft_is_entry']])
|
|
|
|
|
r['exit_reason'] = r.get('exit_reason', "")
|
|
|
|
|
r['rounded_stake_amount'] = round_coin_value(r['stake_amount'], r['quote_currency'])
|
|
|
|
|
r['rounded_profit_abs'] = round_coin_value(r['profit_abs'], r['quote_currency'])
|
|
|
|
|
lines = [
|
|
|
|
|
"*Trade ID:* `{trade_id}`" +
|
|
|
|
|
(" `(since {open_date_hum})`" if r['is_open'] else ""),
|
|
|
|
|
@ -583,7 +584,7 @@ class Telegram(RPCHandler):
|
|
|
|
|
"*Close Date:* `{close_date}`" if r['close_date'] else "",
|
|
|
|
|
"*Current Rate:* `{current_rate:.8f}`" if r['is_open'] else "",
|
|
|
|
|
("*Current Profit:* " if r['is_open'] else "*Close Profit: *")
|
|
|
|
|
+ "`{profit_ratio:.2%}`",
|
|
|
|
|
+ "`{profit_ratio:.2%}` `({rounded_profit_abs})`",
|
|
|
|
|
])
|
|
|
|
|
|
|
|
|
|
if r['is_open']:
|
|
|
|
|
|