Add compatibility shim for trade.entry_trade

This commit is contained in:
Matthias 2022-04-06 19:13:46 +02:00
parent aa76191636
commit 28b58712fb

View File

@ -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: