2019-12-30 13:57:26 +00:00
|
|
|
|
|
|
|
|
2019-12-30 14:11:07 +00:00
|
|
|
class FreqtradeException(Exception):
|
2019-12-30 13:57:26 +00:00
|
|
|
"""
|
2019-12-30 14:11:07 +00:00
|
|
|
Freqtrade base exception. Handled at the outermost level.
|
|
|
|
All other exception types are subclasses of this exception type.
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
class OperationalException(FreqtradeException):
|
|
|
|
"""
|
|
|
|
Requires manual intervention and will stop the bot.
|
|
|
|
Most of the time, this is caused by an invalid Configuration.
|
2019-12-30 13:57:26 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
|
2019-12-30 14:11:07 +00:00
|
|
|
class DependencyException(FreqtradeException):
|
2019-12-30 13:57:26 +00:00
|
|
|
"""
|
2019-12-30 14:11:07 +00:00
|
|
|
Indicates that an assumed dependency is not met.
|
|
|
|
This could happen when there is currently not enough money on the account.
|
2019-12-30 13:57:26 +00:00
|
|
|
"""
|
|
|
|
|
|
|
|
|
2020-05-26 18:35:11 +00:00
|
|
|
class PricingError(DependencyException):
|
2020-05-26 18:08:01 +00:00
|
|
|
"""
|
|
|
|
Subclass of DependencyException.
|
|
|
|
Indicates that the price could not be determined.
|
|
|
|
Implicitly a buy / sell operation.
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
2019-12-30 14:11:07 +00:00
|
|
|
class InvalidOrderException(FreqtradeException):
|
2019-12-30 13:57:26 +00:00
|
|
|
"""
|
|
|
|
This is returned when the order is not valid. Example:
|
|
|
|
If stoploss on exchange order is hit, then trying to cancel the order
|
|
|
|
should return this exception.
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
2019-12-30 14:11:07 +00:00
|
|
|
class TemporaryError(FreqtradeException):
|
2019-12-30 13:57:26 +00:00
|
|
|
"""
|
|
|
|
Temporary network or exchange related error.
|
|
|
|
This could happen when an exchange is congested, unavailable, or the user
|
|
|
|
has networking problems. Usually resolves itself after a time.
|
|
|
|
"""
|
2020-02-06 19:26:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
class StrategyError(FreqtradeException):
|
|
|
|
"""
|
|
|
|
Errors with custom user-code deteced.
|
|
|
|
Usually caused by errors in the strategy.
|
|
|
|
"""
|