Quick fix for trades opening below min-trade amount

This commit is contained in:
Matthias 2021-07-11 21:01:12 +02:00
parent 38296e8689
commit 8b78a3bde2

View File

@ -229,6 +229,10 @@ class Wallets:
return 0
max_stake_amount = self.get_available_stake_amount()
if min_stake_amount > max_stake_amount:
logger.warning("Minimum stake amount > available balance.")
return 0
if min_stake_amount is not None and stake_amount < min_stake_amount:
stake_amount = min_stake_amount
logger.info(