Use proper cost for order

closes #8906
This commit is contained in:
Matthias 2023-07-15 09:02:17 +02:00
parent e4cd29d88c
commit 17296fdf9c

View File

@ -901,7 +901,7 @@ class Backtesting:
amount=amount,
filled=0,
remaining=amount,
cost=stake_amount + trade.fee_open,
cost=amount * propose_rate + trade.fee_open,
)
trade.orders.append(order)
if pos_adjust and self._get_order_filled(order.ft_price, row):