From 28b58712fb0468e2c6ea6772f514eea7e811222b Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 6 Apr 2022 19:13:46 +0200 Subject: [PATCH] Add compatibility shim for trade.entry_trade --- freqtrade/persistence/models.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/freqtrade/persistence/models.py b/freqtrade/persistence/models.py index 21be7fb21..3cd9cbd67 100644 --- a/freqtrade/persistence/models.py +++ b/freqtrade/persistence/models.py @@ -370,6 +370,12 @@ class LocalTrade(): def close_date_utc(self): return self.close_date.replace(tzinfo=timezone.utc) + @property + def enter_side(self) -> str: + """ DEPRECATED, please use entry_side instead""" + # TODO: Please remove me after 2022.5 + return self.entry_side + @property def entry_side(self) -> str: if self.is_short: