fetch_balance is never called in dry-run

This commit is contained in:
Matthias
2021-04-10 14:13:00 +02:00
parent 37c2e037f1
commit 14e8574235
2 changed files with 0 additions and 19 deletions

View File

@@ -662,8 +662,6 @@ class Exchange:
@retrier
def get_balance(self, currency: str) -> float:
if self._config['dry_run']:
return self._config['dry_run_wallet']
# ccxt exception is already handled by get_balances
balances = self.get_balances()
@@ -675,8 +673,6 @@ class Exchange:
@retrier
def get_balances(self) -> dict:
if self._config['dry_run']:
return {}
try:
balances = self._api.fetch_balance()