Simplify liquidation price calling structure

This commit is contained in:
Matthias
2022-08-29 06:45:00 +02:00
parent f664ebd262
commit 226fa5d93c
4 changed files with 69 additions and 101 deletions

View File

@@ -1732,12 +1732,12 @@ class FreqtradeBot(LoggingMixin):
# TODO: Margin will need to use interest_rate as well.
# interest_rate = self.exchange.get_interest_rate()
trade.set_liquidation_price(self.exchange.get_liquidation_price(
leverage=trade.leverage,
pair=trade.pair,
open_rate=trade.open_rate,
is_short=trade.is_short,
amount=trade.amount,
stake_amount=trade.stake_amount,
open_rate=trade.open_rate,
is_short=trade.is_short
wallet_balance=trade.stake_amount,
))
# Updating wallets when order is closed