mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 18:23:55 +00:00
29 lines
541 B
Python
29 lines
541 B
Python
# pragma pylint: disable=too-few-public-methods
|
|
|
|
"""
|
|
Bot state constant
|
|
"""
|
|
from enum import Enum
|
|
|
|
|
|
class State(Enum):
|
|
"""
|
|
Bot application states
|
|
"""
|
|
RUNNING = 1
|
|
STOPPED = 2
|
|
RELOAD_CONF = 3
|
|
|
|
|
|
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
|