From d26a068adff0bc009514d2fd5e201ce28e52d9cc Mon Sep 17 00:00:00 2001 From: Sam Germain Date: Sun, 19 Sep 2021 00:51:06 -0600 Subject: [PATCH] rearanged isolated_liq in models a bit --- freqtrade/persistence/models.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/freqtrade/persistence/models.py b/freqtrade/persistence/models.py index cd22d9ead..e23fd281c 100644 --- a/freqtrade/persistence/models.py +++ b/freqtrade/persistence/models.py @@ -375,7 +375,14 @@ class LocalTrade(): is_short=self.is_short, leverage=self.leverage, trading_mode=self.trading_mode, - collateral=Collateral.ISOLATED + collateral=Collateral.ISOLATED, + mm_ex_1=0.0, + upnl_ex_1=0.0, + # TODO-lev: position=amount * current_price, + # TODO-lev: maintenance_amt, + # TODO-lev: wallet_balance, + # TODO-lev: mm_rate, + ) if isolated_liq is None: raise OperationalException(