stable/freqtrade/enums/runmode.py

24 lines
592 B
Python
Raw Normal View History

from enum import Enum
class RunMode(Enum):
"""
Bot running mode (backtest, hyperopt, ...)
can be "live", "dry-run", "backtest", "edge", "hyperopt".
"""
LIVE = "live"
DRY_RUN = "dry_run"
BACKTEST = "backtest"
EDGE = "edge"
HYPEROPT = "hyperopt"
2019-11-01 14:39:25 +00:00
UTIL_EXCHANGE = "util_exchange"
UTIL_NO_EXCHANGE = "util_no_exchange"
2019-08-31 13:14:57 +00:00
PLOT = "plot"
2020-12-31 19:02:27 +00:00
WEBSERVER = "webserver"
2019-11-01 14:39:25 +00:00
OTHER = "other"
TRADING_MODES = [RunMode.LIVE, RunMode.DRY_RUN]
OPTIMIZE_MODES = [RunMode.BACKTEST, RunMode.EDGE, RunMode.HYPEROPT]
NON_UTIL_MODES = TRADING_MODES + OPTIMIZE_MODES