Introduce insufficientFunds Exception

This commit is contained in:
Matthias 2020-08-14 09:56:48 +02:00
parent 8458a380b8
commit a6fc922f28
2 changed files with 9 additions and 0 deletions

View File

@ -110,6 +110,8 @@ Below is an outline of exception inheritance hierarchy:
| +---+ InvalidOrderException
| |
| +---+ RetryableOrderError
| |
| +---+ InsufficientFundsError
|
+---+ StrategyError
```

View File

@ -51,6 +51,13 @@ class RetryableOrderError(InvalidOrderException):
"""
class InsufficientFundsError(InvalidOrderException):
"""
This error is used when there are not enough funds available on the exchange
to create an order.
"""
class TemporaryError(ExchangeError):
"""
Temporary network or exchange related error.