Fix bug with timeframe handling
This commit is contained in:
parent
d55f2be942
commit
e08fda074a
@ -30,7 +30,6 @@ args = arguments.parse_args(no_default_config=True)
|
||||
# Use bittrex as default exchange
|
||||
exchange_name = args.exchange or 'bittrex'
|
||||
|
||||
timeframes = args.timeframes
|
||||
pairs: List = []
|
||||
|
||||
configuration = Configuration(args)
|
||||
@ -50,7 +49,9 @@ if args.config:
|
||||
config['exchange']['secret'] = ''
|
||||
|
||||
pairs = config['exchange']['pair_whitelist']
|
||||
timeframes = [config['ticker_interval']]
|
||||
|
||||
# Don't fail if ticker_interval is not in the configuration
|
||||
timeframes = [config.get('ticker_interval')]
|
||||
|
||||
else:
|
||||
config = {
|
||||
@ -68,6 +69,8 @@ else:
|
||||
}
|
||||
}
|
||||
|
||||
timeframes = args.timeframes
|
||||
|
||||
configuration._load_logging_config(config)
|
||||
|
||||
if args.config and args.exchange:
|
||||
|
Loading…
Reference in New Issue
Block a user