Fix backtesting type incompatibilities

This commit is contained in:
Matthias
2023-02-19 20:23:04 +01:00
parent 0691bbaad9
commit f6b3998bbd
2 changed files with 14 additions and 10 deletions

View File

@@ -1330,7 +1330,8 @@ class FreqtradeBot(LoggingMixin):
# place new order only if new price is supplied
self.execute_entry(
pair=trade.pair,
stake_amount=(order_obj.remaining * order_obj.price / trade.leverage),
stake_amount=(
order_obj.safe_remaining * order_obj.safe_price / trade.leverage),
price=adjusted_entry_price,
trade=trade,
is_short=trade.is_short,