giuse88 / duka

duka - Dukascopy historical data downloader
http://giuse88.github.io/duka
MIT License
302 stars 135 forks source link

Error msg not helpfull #17

Closed leonsgithub closed 7 years ago

leonsgithub commented 7 years ago

In duka/duka/core/utils.py
the error message for the candle timeframe is 'duka: error: argument -c/--candle: Not a valid time frame: '5M'. '

but the help (duka -h)

-c CANDLE, --candle CANDLE use candles instead of ticks. Accepted values 1M 5M 10M 15M 30M 1H 4H

That is confusing until you read the code and see that it should be M5

in main.py help='use candles instead of ticks. Accepted values M1 M5 M10 M15 M30 H1 H4',

giuse88 commented 7 years ago

Thanks for spotting this problem. I am going to fix it. 👍

giuse88 commented 7 years ago

Fixed in #19