Wallet amount must be compared with >=
This commit is contained in:
parent
09621b3ef1
commit
d1bf388b0e
@ -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.")
|
||||||
|
Loading…
Reference in New Issue
Block a user