Fix typo in --strategy_list
This commit is contained in:
@@ -184,12 +184,12 @@ class LookaheadAnalysisSubFunctions:
|
|||||||
|
|
||||||
lookaheadAnalysis_instances = []
|
lookaheadAnalysis_instances = []
|
||||||
|
|
||||||
# unify --strategy and --strategy_list to one list
|
# unify --strategy and --strategy-list to one list
|
||||||
if not (strategy_list := config.get('strategy_list', [])):
|
if not (strategy_list := config.get('strategy_list', [])):
|
||||||
if config.get('strategy') is None:
|
if config.get('strategy') is None:
|
||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
"No Strategy specified. Please specify a strategy via --strategy or "
|
"No Strategy specified. Please specify a strategy via --strategy or "
|
||||||
"--strategy_list"
|
"--strategy-list"
|
||||||
)
|
)
|
||||||
strategy_list = [config['strategy']]
|
strategy_list = [config['strategy']]
|
||||||
|
|
||||||
@@ -211,5 +211,5 @@ class LookaheadAnalysisSubFunctions:
|
|||||||
else:
|
else:
|
||||||
logger.error("There were no strategies specified neither through "
|
logger.error("There were no strategies specified neither through "
|
||||||
"--strategy nor through "
|
"--strategy nor through "
|
||||||
"--strategy_list "
|
"--strategy-list "
|
||||||
"or timeframe was not specified.")
|
"or timeframe was not specified.")
|
||||||
|
|||||||
@@ -77,12 +77,12 @@ class RecursiveAnalysisSubFunctions:
|
|||||||
|
|
||||||
RecursiveAnalysis_instances = []
|
RecursiveAnalysis_instances = []
|
||||||
|
|
||||||
# unify --strategy and --strategy_list to one list
|
# unify --strategy and --strategy-list to one list
|
||||||
if not (strategy_list := config.get('strategy_list', [])):
|
if not (strategy_list := config.get('strategy_list', [])):
|
||||||
if config.get('strategy') is None:
|
if config.get('strategy') is None:
|
||||||
raise OperationalException(
|
raise OperationalException(
|
||||||
"No Strategy specified. Please specify a strategy via --strategy or "
|
"No Strategy specified. Please specify a strategy via --strategy or "
|
||||||
"--strategy_list"
|
"--strategy-list"
|
||||||
)
|
)
|
||||||
strategy_list = [config['strategy']]
|
strategy_list = [config['strategy']]
|
||||||
|
|
||||||
@@ -102,5 +102,5 @@ class RecursiveAnalysisSubFunctions:
|
|||||||
else:
|
else:
|
||||||
logger.error("There were no strategies specified neither through "
|
logger.error("There were no strategies specified neither through "
|
||||||
"--strategy nor through "
|
"--strategy nor through "
|
||||||
"--strategy_list "
|
"--strategy-list "
|
||||||
"or timeframe was not specified.")
|
"or timeframe was not specified.")
|
||||||
|
|||||||
Reference in New Issue
Block a user