Skip to content

Commit

Permalink
Improve telegram message formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
xmatthias committed Mar 6, 2023
1 parent 4cfc7e4 commit de015a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions freqtrade/rpc/telegram.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,14 +510,14 @@ def _prepare_order_details(self, filled_orders: List, quote_currency: str, is_op
if prev_avg_price:
minus_on_entry = (cur_entry_average - prev_avg_price) / prev_avg_price

lines.append(f"*{wording} #{order_nr}:* at {minus_on_entry:.2%} avg profit")
lines.append(f"*{wording} #{order_nr}:* at {minus_on_entry:.2%} avg Profit")
if is_open:
lines.append("({})".format(cur_entry_datetime
.humanize(granularity=["day", "hour", "minute"])))
lines.append(f"*Amount:* {cur_entry_amount} "
f"({round_coin_value(order['cost'], quote_currency)})")
lines.append(f"*Average {wording} Price:* {cur_entry_average} "
f"({price_to_1st_entry:.2%} from 1st entry rate)")
f"({price_to_1st_entry:.2%} from 1st entry Rate)")
lines.append(f"*Order filled:* {order['order_filled_date']}")

# TODO: is this really useful?
Expand Down

0 comments on commit de015a2

Please sign in to comment.