mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
chore: have backtest exit orders account for fee
This commit is contained in:
@@ -855,7 +855,7 @@ class Backtesting:
|
||||
amount=amount,
|
||||
filled=0,
|
||||
remaining=amount,
|
||||
cost=amount * close_rate,
|
||||
cost=amount * close_rate * (1 + self.fee),
|
||||
ft_order_tag=exit_reason,
|
||||
)
|
||||
order._trade_bt = trade
|
||||
|
||||
Reference in New Issue
Block a user