use only first part of the currency to get wallet-amount (!!)
This commit is contained in:
parent
834a0ed620
commit
e72c6a0d94
@ -903,7 +903,7 @@ class FreqtradeBot:
|
|||||||
:return: amount to sell
|
:return: amount to sell
|
||||||
:raise: DependencyException: if available balance is not within 2% of the available amount.
|
: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}")
|
logger.debug(f"{pair} - Wallet: {wallet_amount} - Trade-amount: {amount}")
|
||||||
if wallet_amount > amount:
|
if wallet_amount > amount:
|
||||||
return amount
|
return amount
|
||||||
|
Loading…
Reference in New Issue
Block a user