Add validation for data-download relevant settings

This commit is contained in:
Matthias 2020-02-08 21:53:34 +01:00
parent c4031761fe
commit 1a9787ac76
1 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,11 @@ def start_download_data(args: Dict[str, Any]) -> None:
# Init exchange
exchange = ExchangeResolver.load_exchange(config['exchange']['name'], config, validate=False)
# Manual validations of relevant settings
exchange.validate_pairs(config['pairs'])
for timeframe in config['timeframes']:
exchange.validate_timeframes(timeframe)
try:
if config.get('download_trades'):