cater for case where sell limit order expired

This commit is contained in:
Stefano Ariestasia 2022-02-25 00:20:53 +00:00
parent 42df65d4ec
commit df726a54f8

View File

@ -448,7 +448,8 @@ class Telegram(RPCHandler):
"*Current Pair:* {pair}", "*Current Pair:* {pair}",
"*Amount:* `{amount} ({stake_amount} {base_currency})`", "*Amount:* `{amount} ({stake_amount} {base_currency})`",
"*Entry Tag:* `{buy_tag}`" if r['buy_tag'] else "", "*Entry Tag:* `{buy_tag}`" if r['buy_tag'] else "",
"*Exit Reason:* `{sell_reason}`" if r['sell_reason'] else "", "*Exit Reason:* `{sell_reason}`"
if (r['sell_reason'] and not r['is_open']) else "",
] ]
if position_adjust: if position_adjust: