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, ...)
|
|
|
|
can be "live", "dry-run", "backtest", "edgecli", "hyperopt".
|
|
|
|
"""
|
|
|
|
LIVE = "live"
|
|
|
|
DRY_RUN = "dry_run"
|
|
|
|
BACKTEST = "backtest"
|
|
|
|
EDGECLI = "edgecli"
|
|
|
|
HYPEROPT = "hyperopt"
|
|
|
|
OTHER = "other" # Used for plotting scripts and test
|