mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
fix mypy error on has_open_position function
This commit is contained in:
parent
3d67e0893a
commit
faeda2a166
|
@ -553,13 +553,13 @@ class LocalTrade:
|
||||||
o for o in self.orders
|
o for o in self.orders
|
||||||
if o.ft_order_side == self.entry_side
|
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 = [
|
exit_orders = [
|
||||||
o for o in self.orders
|
o for o in self.orders
|
||||||
if o.ft_order_side == self.exit_side
|
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
|
return (entry_orders_filled_qty - exit_orders_filled_qty) > 0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user