Add safe_close_rate

This commit is contained in:
Matthias
2023-02-16 09:02:57 +00:00
parent e59eaf33e0
commit 608a7c2d38
2 changed files with 6 additions and 2 deletions

View File

@@ -1065,6 +1065,10 @@ class LocalTrade():
""" DEPRECATED! Please use exit_reason instead."""
return self.exit_reason
@property
def safe_close_rate(self) -> float:
return self.close_rate or self.close_rate_requested or 0.0
@staticmethod
def get_trades_proxy(*, pair: Optional[str] = None, is_open: Optional[bool] = None,
open_date: Optional[datetime] = None,