-
Notifications
You must be signed in to change notification settings - Fork 187
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
CCXTFeed _fetch_ohlcv() infinite loop #13
base: master
Are you sure you want to change the base?
Conversation
The line allows the data collection to move forward, otherwise it causes an infinite loop after the first cycle of collection.
Reinstating iterator to since variable
@rymdluo Thanks for the pull request! I will review in the coming weeks and attempt to merge it or get back to you with questions. Appreciate the contribution! |
@rymdluo I have tested this for a while whilst working on other things and not noticed any adverse affects. However, I think I am missing the point - Sorry! Where in the while loop are you putting that print statement? My output looks quite different to yours. Also, what exchange are you testing on? At the moment, I am seeing the data length increase on Kraken with or without the edit. |
I think I've placed it just above the I've only tested it in Binance. |
@rymdluo Thanks! I will take a look on Binance. |
Hello, it really works with binance. I spend 2 days for solving this problem and debugging. Thanks a lot @rymdluo |
|
I have this same error. I have tried to fix this for 2 days now. To reload the module I am using: import ccxtbt My program never leaves the fetch_ohlc loop in ccxtfeed.py Could you please merge this change with the ccxtbt master repository so I can try reinstalling the ccxtbt module? Thank you for your assistance it is greatly appreciated. |
The line allows the data collection to move forward, otherwise it causes an infinite loop after the first cycle of collection.
It is actually a legacy line from Ed's work.
Here is the differences for me via
print(self.symbol, dlen, len(self._data))
in the while loop of_fetch_ohlcv()
Behavior without line:
self._data
length does not increase when fetching ohlcv, causing an infinite loopBehavior with line: