Wrote failing tests for exchange.set_leverage and exchange.set_margin_mode

This commit is contained in:
Sam Germain
2021-09-03 19:00:04 -06:00
parent e6c9b8ffe5
commit 5708fee0e6
2 changed files with 111 additions and 4 deletions

View File

@@ -1606,7 +1606,7 @@ class Exchange:
raise DDosProtection(e) from e
except (ccxt.NetworkError, ccxt.ExchangeError) as e:
raise TemporaryError(
f'Could not set leverage due to {e.__class__.__name__}. Message: {e}') from e
f'Could not set margin mode due to {e.__class__.__name__}. Message: {e}') from e
except ccxt.BaseError as e:
raise OperationalException(e) from e