mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
chore: enhanced aggregation syntax
This commit is contained in:
parent
980b81f009
commit
6cf92c2a90
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user