2017-11-18 07:52:28 +00:00
|
|
|
""" FreqTrade bot """
|
2019-04-18 06:07:43 +00:00
|
|
|
__version__ = '0.18.5'
|
2017-09-28 21:47:51 +00:00
|
|
|
|
2017-11-20 21:15:19 +00:00
|
|
|
|
|
|
|
class DependencyException(BaseException):
|
|
|
|
"""
|
|
|
|
Indicates that a assumed dependency is not met.
|
|
|
|
This could happen when there is currently not enough money on the account.
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
class OperationalException(BaseException):
|
|
|
|
"""
|
|
|
|
Requires manual intervention.
|
2018-06-07 19:35:57 +00:00
|
|
|
This happens when an exchange returns an unexpected error during runtime
|
|
|
|
or given configuration is invalid.
|
2017-11-20 21:15:19 +00:00
|
|
|
"""
|
2018-03-24 18:51:40 +00:00
|
|
|
|
|
|
|
|
2019-04-02 16:45:18 +00:00
|
|
|
class InvalidOrderException(BaseException):
|
2019-04-02 16:25:17 +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.
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
2018-04-21 20:37:27 +00:00
|
|
|
class TemporaryError(BaseException):
|
2018-03-24 18:51:40 +00:00
|
|
|
"""
|
2018-04-21 20:37:27 +00:00
|
|
|
Temporary network or exchange related error.
|
2018-03-24 18:51:40 +00:00
|
|
|
This could happen when an exchange is congested, unavailable, or the user
|
|
|
|
has networking problems. Usually resolves itself after a time.
|
|
|
|
"""
|