mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-02-03 21:00:25 +00:00
chore: add explaining comment for "not fill" branch
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user