scrtlabs / catalyst

An Algorithmic Trading Library for Crypto-Assets in Python
http://enigma.co
Apache License 2.0
2.49k stars 725 forks source link

RuntimeWarning: Degrees of freedom <= 0 for slice #445

Open brandsimon opened 6 years ago

brandsimon commented 6 years ago

Dear Catalyst Maintainers,

Before I tell you about my issue, let me describe my environment:

Environment

Now that you know a little about me, let me tell you about the issue I am having:

Description of Issue

Here is how you can reproduce this issue on your machine:

Reproduction Steps

I dont know how to reproduce it. I got it randomly (maybe once a month). This time it was at paper-trading. I think, it is maybe a problem with empyrical.

What steps have you taken to resolve this already?

I tried upgrading empyrical, but it breaks a lot of other things.

Anything else?

No

Sincerely, Simon Brand

lenak25 commented 6 years ago

Thanks for reporting @brandsimon, we will investigate.

kurophali commented 6 years ago

I guess it's the data you pulled has some days missing. I copied the default hodl script and change the exchange to binance then it gave me this error too.