Crypto-Signal icon indicating copy to clipboard operation
Crypto-Signal copied to clipboard

datetime.timedelta not supporting timedelta_values

Open ikwtif opened this issue 5 years ago • 0 comments

datetime.timedelta doesn't support 'months', 'years' These should be handled and converted to weeks before passing

config candle_period: 1M

Error: File "\app\exchange.py", line 110, in get_historical_data start_date_delta = timedelta(**timedelta_args) TypeError: 'months' is an invalid keyword argument for __new__()

https://github.com/CryptoSignal/crypto-signal/blob/1ce480ec11a0b34acdadc5b04234ab6e824daeb1/app/exchange.py#L110

Python docs source: https://docs.python.org/2/library/datetime.html#timedelta-objects

ikwtif avatar Aug 24 '20 21:08 ikwtif