2018-02-04 00:10:58 +00:00
|
|
|
# pragma pylint: disable=too-few-public-methods
|
|
|
|
|
|
|
|
"""
|
|
|
|
Bot state constant
|
|
|
|
"""
|
2018-12-25 13:05:40 +00:00
|
|
|
from enum import Enum
|
2018-02-04 00:10:58 +00:00
|
|
|
|
|
|
|
|
2018-12-25 13:05:40 +00:00
|
|
|
class State(Enum):
|
2018-02-04 00:10:58 +00:00
|
|
|
"""
|
2018-06-09 02:29:48 +00:00
|
|
|
Bot application states
|
2018-02-04 00:10:58 +00:00
|
|
|
"""
|
2018-12-25 13:05:40 +00:00
|
|
|
RUNNING = 1
|
|
|
|
STOPPED = 2
|
|
|
|
RELOAD_CONF = 3
|
2018-12-25 13:23:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
class RunMode(Enum):
|
|
|
|
"""
|
|
|
|
Bot running mode (backtest, hyperopt, ...)
|
2019-05-28 17:25:01 +00:00
|
|
|
can be "live", "dry-run", "backtest", "edge", "hyperopt".
|
2018-12-25 13:23:59 +00:00
|
|
|
"""
|
|
|
|
LIVE = "live"
|
|
|
|
DRY_RUN = "dry_run"
|
|
|
|
BACKTEST = "backtest"
|
2019-05-28 17:25:01 +00:00
|
|
|
EDGE = "edge"
|
2018-12-25 13:23:59 +00:00
|
|
|
HYPEROPT = "hyperopt"
|
|
|
|
OTHER = "other" # Used for plotting scripts and test
|