use only first part of the currency to get wallet-amount (!!)

This commit is contained in:
Matthias 2019-12-18 20:02:15 +01:00
parent 834a0ed620
commit e72c6a0d94
1 changed files with 1 additions and 1 deletions

View File

@ -903,7 +903,7 @@ class FreqtradeBot:
:return: amount to sell
:raise: DependencyException: if available balance is not within 2% of the available amount.
"""
wallet_amount = self.wallets.get_free(pair)
wallet_amount = self.wallets.get_free(pair.split('/')[0])
logger.debug(f"{pair} - Wallet: {wallet_amount} - Trade-amount: {amount}")
if wallet_amount > amount:
return amount