Introduce insufficientFunds Exception
This commit is contained in:
@@ -110,6 +110,8 @@ Below is an outline of exception inheritance hierarchy:
|
|||||||
| +---+ InvalidOrderException
|
| +---+ InvalidOrderException
|
||||||
| |
|
| |
|
||||||
| +---+ RetryableOrderError
|
| +---+ RetryableOrderError
|
||||||
|
| |
|
||||||
|
| +---+ InsufficientFundsError
|
||||||
|
|
|
|
||||||
+---+ StrategyError
|
+---+ StrategyError
|
||||||
```
|
```
|
||||||
|
@@ -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):
|
class TemporaryError(ExchangeError):
|
||||||
"""
|
"""
|
||||||
Temporary network or exchange related error.
|
Temporary network or exchange related error.
|
||||||
|
Reference in New Issue
Block a user