chore: enhanced aggregation syntax

This commit is contained in:
Matthias 2024-08-12 16:41:07 +02:00
parent 980b81f009
commit 6cf92c2a90

View File

@ -1217,7 +1217,7 @@ class LocalTrade:
# with realized_profit.
close_profit = (close_profit_abs / total_stake) * self.leverage
else:
total_stake = total_stake + self._calc_open_trade_value(tmp_amount, price)
total_stake += self._calc_open_trade_value(tmp_amount, price)
max_stake_amount += tmp_amount * price
self.funding_fees = funding_fees
self.max_stake_amount = float(max_stake_amount)