match timeframes to arguments

This commit is contained in:
Janne Sinivirta 2018-06-04 16:35:00 +03:00
parent b995e04daa
commit 7df77b1b28
2 changed files with 4 additions and 1 deletions

View File

@ -318,7 +318,7 @@ class Arguments(object):
help='Specify which tickers to download. Space separated list. \
Default: %(default)s',
choices=['1m', '3m', '5m', '15m', '30m', '1h', '2h', '4h',
'6h', '8h', '12h', '1d', '3d', '1w', '1M'],
'6h', '8h', '12h', '1d', '3d', '1w'],
default=['1m', '5m'],
nargs='+',
dest='timeframes',

View File

@ -12,6 +12,7 @@ DEFAULT_STRATEGY = 'DefaultStrategy'
TICKER_INTERVAL_MINUTES = {
'1m': 1,
'3m': 3,
'5m': 5,
'15m': 15,
'30m': 30,
@ -19,8 +20,10 @@ TICKER_INTERVAL_MINUTES = {
'2h': 120,
'4h': 240,
'6h': 360,
'8h': 480,
'12h': 720,
'1d': 1440,
'3d': 4320,
'1w': 10080,
}