Open marlowequart opened 4 years ago
Is it possible that this issue could have to do with discontinuities in my data? It doesn't appear to be the case in the example here, but I do know that there are some dates where the volume shows up as zero contracts. Could that be messing up the ingest of the volume data?
I figured out what my issue was, I got the open interest and volume columns switched. Case of user error haha.
Environment
Description of Issue
I believe I was able to successfully ingest my futures data, but I seem to be having a slight problem with the way it was done. I have followed the process listed here to check if the data was ingested correctly: https://github.com/quantopian/zipline/issues/2293 It seems like zipline is attaching a continuation of the volume to the bundle data when it ingests it. Does this make any sense? Is that possible? How might I fix this if so?
Here is what happens when I plot the individual contracts using pandas:
And here is what I get when I plot the individual contracts from the bundle:
I really appreciate any insights!
This is my code for plotting the bundle data:
And my code for ingesting: