chore: add explaining comment for "not fill" branch

This commit is contained in:
Matthias
2024-11-05 20:45:58 +01:00
parent 835269825d
commit 3eb2981fb4

View File

@@ -1198,6 +1198,8 @@ class FreqtradeBot(LoggingMixin):
)
stake_amount = trade.stake_amount
if not fill:
# If we have open orders, we need to add the stake amount of the open orders
# as it's not yet included in the trade.stake_amount
stake_amount += sum(
o.stake_amount for o in trade.open_orders if o.ft_order_side == trade.entry_side
)