Refactor Configuration() to apply common configurations all the time and to remove show_info
This commit is contained in:
@@ -293,6 +293,7 @@ def setup_configuration(args) -> Dict[str, Any]:
|
||||
:return: Configuration
|
||||
"""
|
||||
configuration = Configuration(args)
|
||||
|
||||
config = configuration.get_config()
|
||||
|
||||
# Ensure we do not use Exchange credentials
|
||||
|
@@ -589,7 +589,8 @@ def start(args) -> None:
|
||||
# Monkey patch the configuration with hyperopt_conf.py
|
||||
configuration = Configuration(args)
|
||||
optimize_config = hyperopt_optimize_conf()
|
||||
config = configuration._load_backtesting_config(optimize_config)
|
||||
config = configuration._load_common_config(optimize_config)
|
||||
config = configuration._load_backtesting_config(config)
|
||||
config = configuration._load_hyperopt_config(config)
|
||||
config['exchange']['key'] = ''
|
||||
config['exchange']['secret'] = ''
|
||||
|
Reference in New Issue
Block a user