fix mypy error on has_open_position function

This commit is contained in:
Axel-CH 2024-04-14 00:40:12 -04:00
parent 3d67e0893a
commit faeda2a166

View File

@ -553,13 +553,13 @@ class LocalTrade:
o for o in self.orders
if o.ft_order_side == self.entry_side
]
entry_orders_filled_qty = sum(eo.filled for eo in entry_orders)
entry_orders_filled_qty = sum(eno.safe_filled for eno in entry_orders)
exit_orders = [
o for o in self.orders
if o.ft_order_side == self.exit_side
]
exit_orders_filled_qty = sum(eo.filled for eo in exit_orders)
exit_orders_filled_qty = sum(exo.safe_filled for exo in exit_orders)
return (entry_orders_filled_qty - exit_orders_filled_qty) > 0