-
Notifications
You must be signed in to change notification settings - Fork 54
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
Resampling multiple IB datas causes cerebro to grind to a halt #68
Comments
It seems if I run a strategy that does absolutely nothing, it's fine.
I'll write some tests that access different line items and report back with the results. |
I've done some tests using the following:
Changing the fromdate and todate seems change the outcome, for example the following dates work:
So it's clearly something with the way ibdata.py is requesting or handling the data from IB. |
I'm unable to recreate this problem. I've copied your code above and I'm receiving results no problem. The only change is I used these currencies since I don't have your subscription.
Are you still having an issue with this? |
@neilsmurphy using those currencies works fine for me. Still an issue with IBAU200-CFD-SMART and IBUS500-CFD-SMART. I will test some more tonight. |
I did encounter this issue. This happens when tws does not send an date that starts with "finished-at-..." when requesting historical data. it just loops and waits for the data to come in. This happened for me using stocks (SRNE) with granularity of 1 Day. When the todate is ommitted or date equals now (my explanation for this was, that the last period is not finished yet). I did not investigate the issue that much since i use yahoo for now to get the data. |
@shed909 Any further luck with this? |
@neilsmurphy I've kind of put this on the back burner, but I just did a quick test and the last bar that I see in the debug output (before it stops) contains: 'date=finished-20210401'
@happydasch's theory is looking likely. I have a few things to finish before I dig any further. |
This seems to be affected by the following two conditions:
I've tried to trace it, but I don't have much experience tracing bugs like this where I can't pinpoint an appropriate pdb breakpoint, especially when I don't know the project well.
The full trace I captured using
python3 -m trace --trace
is here if anyone finds it useful:https://gist.github.com/shed909/09427c02944f5111822c767197d84cf7
And when I keyboard interrupt it:
I have tested the following with successful results:
And the following with unsuccessful results:
Here is example of how I'm testing this:
The above includes the IB products/datas I used in the Python trace above. I've also tried many others, including the same instruments with the same timeframe and compression.
I'm just testing month blocks of daily data at the moment, eg: -fd 2021-06-02 -td 2021-07-02
I'm sure someone can replicate this quite easily, or if anyone has any pointers on how to trace it further, I'd love to have a crack myself.
The text was updated successfully, but these errors were encountered: