Remove obsolete get_balance method

This commit is contained in:
Matthias
2021-04-28 16:00:12 +02:00
parent 1465af50d7
commit 63c28b6519
3 changed files with 1 additions and 49 deletions

View File

@@ -666,17 +666,6 @@ class Exchange:
raise OperationalException(f"stoploss is not implemented for {self.name}.")
@retrier
def get_balance(self, currency: str) -> float:
# ccxt exception is already handled by get_balances
balances = self.get_balances()
balance = balances.get(currency)
if balance is None:
raise TemporaryError(
f'Could not get {currency} balance due to malformed exchange response: {balances}')
return balance['free']
@retrier
def get_balances(self) -> dict: