Add explicit test for fee_updated

This commit is contained in:
Matthias
2020-05-01 20:02:38 +02:00
parent 6d620ba1f6
commit 71c90422ba
2 changed files with 32 additions and 0 deletions

View File

@@ -402,6 +402,8 @@ class Trade(_DECL_BASE):
return self.fee_open_currency is not None
elif side == 'sell':
return self.fee_close_currency is not None
else:
return False
def _calc_open_trade_price(self) -> float:
"""