Add leverage to custom_stake_amount callback

closes #7047
This commit is contained in:
Matthias
2022-07-08 19:44:20 +02:00
parent b39508f64d
commit e52f82b565
5 changed files with 15 additions and 9 deletions

View File

@@ -722,7 +722,7 @@ class Backtesting:
pair=pair, current_time=current_time, current_rate=propose_rate,
proposed_stake=stake_amount, min_stake=min_stake_amount,
max_stake=min(stake_available, max_stake_amount),
entry_tag=entry_tag, side=direction)
leverage=leverage, entry_tag=entry_tag, side=direction)
stake_amount_val = self.wallets.validate_stake_amount(
pair=pair,