chore: remove edge as RunMode
This commit is contained in:
@@ -159,16 +159,6 @@ def process_temporary_deprecated_settings(config: Config) -> None:
|
|||||||
process_removed_setting(
|
process_removed_setting(
|
||||||
config, "ask_strategy", "ignore_roi_if_buy_signal", None, "ignore_roi_if_entry_signal"
|
config, "ask_strategy", "ignore_roi_if_buy_signal", None, "ignore_roi_if_entry_signal"
|
||||||
)
|
)
|
||||||
if config.get("edge", {}).get(
|
|
||||||
"enabled", False
|
|
||||||
) and "capital_available_percentage" in config.get("edge", {}):
|
|
||||||
raise ConfigurationError(
|
|
||||||
"DEPRECATED: "
|
|
||||||
"Using 'edge.capital_available_percentage' has been deprecated in favor of "
|
|
||||||
"'tradable_balance_ratio'. Please migrate your configuration to "
|
|
||||||
"'tradable_balance_ratio' and remove 'capital_available_percentage' "
|
|
||||||
"from the edge configuration."
|
|
||||||
)
|
|
||||||
if "ticker_interval" in config:
|
if "ticker_interval" in config:
|
||||||
raise ConfigurationError(
|
raise ConfigurationError(
|
||||||
"DEPRECATED: 'ticker_interval' detected. "
|
"DEPRECATED: 'ticker_interval' detected. "
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ class RunMode(str, Enum):
|
|||||||
LIVE = "live"
|
LIVE = "live"
|
||||||
DRY_RUN = "dry_run"
|
DRY_RUN = "dry_run"
|
||||||
BACKTEST = "backtest"
|
BACKTEST = "backtest"
|
||||||
EDGE = "edge"
|
|
||||||
HYPEROPT = "hyperopt"
|
HYPEROPT = "hyperopt"
|
||||||
UTIL_EXCHANGE = "util_exchange"
|
UTIL_EXCHANGE = "util_exchange"
|
||||||
UTIL_NO_EXCHANGE = "util_no_exchange"
|
UTIL_NO_EXCHANGE = "util_no_exchange"
|
||||||
@@ -20,5 +19,5 @@ class RunMode(str, Enum):
|
|||||||
|
|
||||||
|
|
||||||
TRADE_MODES = [RunMode.LIVE, RunMode.DRY_RUN]
|
TRADE_MODES = [RunMode.LIVE, RunMode.DRY_RUN]
|
||||||
OPTIMIZE_MODES = [RunMode.BACKTEST, RunMode.EDGE, RunMode.HYPEROPT]
|
OPTIMIZE_MODES = [RunMode.BACKTEST, RunMode.HYPEROPT]
|
||||||
NON_UTIL_MODES = TRADE_MODES + OPTIMIZE_MODES
|
NON_UTIL_MODES = TRADE_MODES + OPTIMIZE_MODES
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class PairListManager(LoggingMixin):
|
|||||||
LoggingMixin.__init__(self, logger, refresh_period)
|
LoggingMixin.__init__(self, logger, refresh_period)
|
||||||
|
|
||||||
def _check_backtest(self) -> None:
|
def _check_backtest(self) -> None:
|
||||||
if self._config["runmode"] not in (RunMode.BACKTEST, RunMode.EDGE, RunMode.HYPEROPT):
|
if self._config["runmode"] not in (RunMode.BACKTEST, RunMode.HYPEROPT):
|
||||||
return
|
return
|
||||||
|
|
||||||
pairlist_errors: list[str] = []
|
pairlist_errors: list[str] = []
|
||||||
|
|||||||
Reference in New Issue
Block a user