Update telegram notifications to properly detect shorts

This commit is contained in:
Matthias
2022-03-04 19:42:29 +01:00
parent 9576fab621
commit 8943d42509
4 changed files with 9 additions and 7 deletions

View File

@@ -171,7 +171,7 @@ class RPC:
# calculate profit and send message to user
if trade.is_open:
try:
closing_side = "buy" if trade.is_short else "sell"
closing_side = trade.exit_side
current_rate = self._freqtrade.exchange.get_rate(
trade.pair, refresh=False, side=closing_side)
except (ExchangeError, PricingError):