Run validation after custom validations

This commit is contained in:
Matthias 2019-11-25 07:05:18 +01:00
parent 8d002a8f28
commit e7be742c58
2 changed files with 5 additions and 5 deletions

View File

@ -62,15 +62,15 @@ def validate_config_consistency(conf: Dict[str, Any]) -> None:
: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)
_validate_whitelist(conf)
# validate configuration before returning
logger.info('Validating configuration ...')
validate_config_schema(conf)
def _validate_trailing_stoploss(conf: Dict[str, Any]) -> None:

View File

@ -66,7 +66,7 @@ MINIMAL_CONFIG = {
CONF_SCHEMA = {
'type': 'object',
'properties': {
'max_open_trades': {'type': 'integer', 'minimum': -1},
'max_open_trades': {'type': ['integer', 'number'], 'minimum': -1},
'ticker_interval': {'type': 'string', 'enum': TIMEFRAMES},
'stake_currency': {'type': 'string', 'enum': ['BTC', 'XBT', 'ETH', 'USDT', 'EUR', 'USD']},
'stake_amount': {