fix: align telegram output better
This commit is contained in:
@@ -483,7 +483,7 @@ class Telegram(RPCHandler):
|
|||||||
profit_prefix = "Sub "
|
profit_prefix = "Sub "
|
||||||
cp_extra = (
|
cp_extra = (
|
||||||
f"*Final Profit:* `{format_pct(msg['final_profit_ratio'])} "
|
f"*Final Profit:* `{format_pct(msg['final_profit_ratio'])} "
|
||||||
f"({msg['cumulative_profit']:.8f} {msg['quote_currency']}{cp_fiat})`\n"
|
f"({fmt_coin(msg['cumulative_profit'], msg['stake_currency'])}{cp_fiat})`\n"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
exit_wording = f"Partially {exit_wording.lower()}"
|
exit_wording = f"Partially {exit_wording.lower()}"
|
||||||
@@ -832,7 +832,7 @@ class Telegram(RPCHandler):
|
|||||||
):
|
):
|
||||||
# Adding initial stoploss only if it is different from stoploss
|
# Adding initial stoploss only if it is different from stoploss
|
||||||
lines.append(
|
lines.append(
|
||||||
f"*Initial Stoploss:* `{r['initial_stop_loss_abs']:.8f}` "
|
f"*Initial Stoploss:* `{round_value(r['initial_stop_loss_abs'], 8)}` "
|
||||||
f"`({format_pct(r['initial_stop_loss_ratio'])})`"
|
f"`({format_pct(r['initial_stop_loss_ratio'])})`"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user