Allow empty stake currency in certain cases

This commit is contained in:
Matthias 2020-01-02 10:47:37 +01:00
parent 20fc3b7978
commit 22fcf7b4dc

View File

@ -48,6 +48,10 @@ def validate_config_schema(conf: Dict[str, Any]) -> Dict[str, Any]:
conf_schema['required'] = constants.SCHEMA_TRADE_REQUIRED
else:
conf_schema['required'] = constants.SCHEMA_MINIMAL_REQUIRED
# Dynamically allow empty stake-currency
# Since the minimal config specifies this too.
# It's not allowed for Dry-run or live modes
conf_schema['properties']['stake_currency']['enum'] += ['']
try:
FreqtradeValidator(conf_schema).validate(conf)