added stats for long short

This commit is contained in:
Aezo Teo
2021-12-19 23:24:46 +08:00
parent edd80c3006
commit ea418bc9ac
4 changed files with 18 additions and 5 deletions

View File

@@ -398,6 +398,8 @@ class Telegram(RPCHandler):
lines = [
"*Trade ID:* `{trade_id}` `(since {open_date_hum})`",
"*Current Pair:* {pair}",
"*Direction:* " + ("`Short`" if r['is_short'] else "`Long`"),
"*Leverage:* `{leverage}`" if r['leverage'] else "",
"*Amount:* `{amount} ({stake_amount} {base_currency})`",
"*Enter Tag:* `{enter_tag}`" if r['enter_tag'] else "",
"*Open Rate:* `{open_rate:.8f}`",