freqtrade_origin/freqtrade/enums/runmode.py

25 lines
594 B
Python
Raw Normal View History

from enum import Enum
class RunMode(str, Enum):
"""
Bot running mode (backtest, hyperopt, ...)
can be "live", "dry-run", "backtest", "edge", "hyperopt".
"""
2024-05-12 14:21:53 +00:00
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"
TRADE_MODES = [RunMode.LIVE, RunMode.DRY_RUN]
OPTIMIZE_MODES = [RunMode.BACKTEST, RunMode.EDGE, RunMode.HYPEROPT]
NON_UTIL_MODES = TRADE_MODES + OPTIMIZE_MODES