Simplify and align liquidation price handling

This commit is contained in:
Matthias
2022-03-06 16:27:55 +01:00
parent 612ede5e48
commit 6360ef029c
4 changed files with 28 additions and 31 deletions

View File

@@ -1584,6 +1584,10 @@ class FreqtradeBot(LoggingMixin):
open_rate=trade.open_rate,
is_short=trade.is_short
))
if not self.edge:
# TODO: should shorting/leverage be supported by Edge,
# then this will need to be fixed.
trade.adjust_stop_loss(trade.open_rate, self.strategy.stoploss, initial=True)
# Updating wallets when order is closed
self.wallets.update()