Wallet amount must be compared with >=

This commit is contained in:
Matthias 2020-01-15 19:56:14 +01:00
parent 09621b3ef1
commit d1bf388b0e

View File

@ -904,7 +904,7 @@ class FreqtradeBot:
""" """
wallet_amount = self.wallets.get_free(pair.split('/')[0]) wallet_amount = self.wallets.get_free(pair.split('/')[0])
logger.debug(f"{pair} - Wallet: {wallet_amount} - Trade-amount: {amount}") logger.debug(f"{pair} - Wallet: {wallet_amount} - Trade-amount: {amount}")
if wallet_amount > amount: if wallet_amount >= amount:
return amount return amount
elif wallet_amount > amount * 0.98: elif wallet_amount > amount * 0.98:
logger.info(f"{pair} - Falling back to wallet-amount.") logger.info(f"{pair} - Falling back to wallet-amount.")