From c3d7411668f306c77a5c256b5131a49156f7891e Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Wed, 27 Nov 2019 19:35:22 +0300 Subject: [PATCH] Fix imports --- freqtrade/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/freqtrade/utils.py b/freqtrade/utils.py index 99e8c3918..3fc0c245c 100644 --- a/freqtrade/utils.py +++ b/freqtrade/utils.py @@ -23,7 +23,6 @@ from freqtrade.data.history import (convert_trades_to_ohlcv, from freqtrade.exchange import (available_exchanges, ccxt_exchanges, market_is_active, symbol_is_pair) from freqtrade.misc import plural, render_template -from freqtrade.optimize.hyperopt import Hyperopt from freqtrade.resolvers import ExchangeResolver from freqtrade.state import RunMode @@ -330,6 +329,8 @@ def start_list_markets(args: Dict[str, Any], pairs_only: bool = False) -> None: def start_hyperopt_list(args: Dict[str, Any]) -> None: """ """ + from freqtrade.optimize.hyperopt import Hyperopt + config = setup_utils_configuration(args, RunMode.UTIL_NO_EXCHANGE) only_best = config.get('hyperopt_list_best', False) @@ -371,6 +372,8 @@ def start_hyperopt_list(args: Dict[str, Any]) -> None: def start_hyperopt_show(args: Dict[str, Any]) -> None: """ """ + from freqtrade.optimize.hyperopt import Hyperopt + config = setup_utils_configuration(args, RunMode.UTIL_NO_EXCHANGE) only_best = config.get('hyperopt_list_best', False)