This commit is contained in:
Matthias 2019-12-17 08:31:44 +01:00
parent cbd10309f5
commit 539b5627fd

View File

@ -354,7 +354,7 @@ class Trade(_DECL_BASE):
Recalculate open_trade_price.
Must be called whenever open_rate or fee_open is changed.
"""
self.open_trade_price - self._calc_open_trade_price()
self.open_trade_price = self._calc_open_trade_price()
def calc_close_trade_price(self, rate: Optional[float] = None,
fee: Optional[float] = None) -> float: