Allow empty stake currency in certain cases
This commit is contained in:
parent
20fc3b7978
commit
22fcf7b4dc
@ -48,6 +48,10 @@ def validate_config_schema(conf: Dict[str, Any]) -> Dict[str, Any]:
|
|||||||
conf_schema['required'] = constants.SCHEMA_TRADE_REQUIRED
|
conf_schema['required'] = constants.SCHEMA_TRADE_REQUIRED
|
||||||
else:
|
else:
|
||||||
conf_schema['required'] = constants.SCHEMA_MINIMAL_REQUIRED
|
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:
|
try:
|
||||||
FreqtradeValidator(conf_schema).validate(conf)
|
FreqtradeValidator(conf_schema).validate(conf)
|
||||||
|
Loading…
Reference in New Issue
Block a user