Move config json validation to after strategy loading

Otherwise attributes are mandatory in configuration
while they could be set in the strategy
This commit is contained in:
Matthias
2019-11-23 15:49:46 +01:00
parent 4dc0631a4b
commit af3eea3805
4 changed files with 13 additions and 10 deletions

View File

@@ -61,6 +61,11 @@ def validate_config_consistency(conf: Dict[str, Any]) -> None:
:param conf: Config in JSON format
:return: Returns None if everything is ok, otherwise throw an OperationalException
"""
# validate configuration before returning
logger.info('Validating configuration ...')
validate_config_schema(conf)
# validating trailing stoploss
_validate_trailing_stoploss(conf)
_validate_edge(conf)