freqtradebot.get_valid_enter_price_and_stake gets min of stake_amount and max_stake_amount before calling wallets.validate_stake_amount

This commit is contained in:
Sam Germain
2022-02-03 19:22:37 -06:00
parent a50f4d2c57
commit 30c476e3c1
2 changed files with 2 additions and 0 deletions

View File

@@ -866,6 +866,7 @@ class FreqtradeBot(LoggingMixin):
entry_tag=entry_tag, side=trade_side
)
stake_amount = min(stake_amount, max_stake_amount)
stake_amount = self.wallets.validate_stake_amount(pair, stake_amount, min_stake_amount)
return enter_limit_requested, stake_amount