Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

datetime.timedelta not supporting timedelta_values #390

Open
ikwtif opened this issue Aug 24, 2020 · 0 comments
Open

datetime.timedelta not supporting timedelta_values #390

ikwtif opened this issue Aug 24, 2020 · 0 comments

Comments

@ikwtif
Copy link

ikwtif commented Aug 24, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant