Add test for exit_timeout_count

This commit is contained in:
Matthias
2021-11-06 13:10:41 +01:00
parent 7a907a7636
commit f7dc47b1c8
3 changed files with 21 additions and 5 deletions

View File

@@ -496,8 +496,7 @@ class LocalTrade():
Get amount of failed exiting orders
assumes full exits.
"""
orders = [o for o in self.orders if o.ft_order_side == 'sell']
return len(orders)
return len([o for o in self.orders if o.ft_order_side == 'sell'])
def _calc_open_trade_value(self) -> float:
"""