Open ayxemma opened 5 years ago
Hi @ayxemma I believe this is due to https://github.com/quantopian/zipline/pull/2223
Calculating the name of CSV file from the symbol name is not done corretly. The current method would match a filename to a symbol if it ended in the symbol concatenated with .csv. This means that if there are two stocks Ford (symbol F) and Regions Financial Corporation (symbol RF). Then the calculated filename to load for Ford could be RF.csv which is clearly not the data file for Ford.
If we could get that PR fixed up then we could avoid this issue (if you have any interest in doing so, feel free to give it a go)
thanks, i looked at the changes made in the request i think that should be correct, not sure why it shows it's failing some tests. will have a look later.
Modify the following line in data/bundles/csvdir.py works for me:
fname = [fname for fname in files if '%s.csv' % symbol in fname][0]
to
fname = [fname for fname in files if '%s.csv' % symbol == fname][0]
Not sure anything else needed to be modified.
Dear Zipline Maintainers,
Before I tell you about my issue, let me describe my environment:
Environment