-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Description
Hi fellow maintainers,
I've been trying to ingest non-USA CSV bundles with Zipline, but it proved much harder than I calculated.
Turns out that there are some hardcoded variables that bind the process to only NYSE and UTC data.
Follow some lines I had to change in order to have a successful (without crashes) bundle ingestion:
zipline/zipline/data/bundles/csvdir.py
Line 161 in 05a6080
metadata['exchange'] = "CSVDIR" |
zipline/zipline/data/bundles/csvdir.py
Line 227 in 05a6080
register_calendar_alias("CSVDIR", "NYSE") |
When I tried to fix the values, I've got an error here:
File "zipline/data/bundles/csvdir.py", line 161, in csvdir_bundle
metadata['exchange'] = calendar_name
NameError: name 'calendar_name' is not defined
It looked weird but I didn't have time to follow up and debug it.
My current state is simply change the hardcoded values from 'NYSE' to 'BVMF' and it works.
Any suggestions on how to fix it for the long term?