When trying to execute run_pipeline on a bundle containing US futures price data, I receive the following error:
ValueError: Unable to determine domain for Pipeline.
Pass domain=<desired domain> to your Pipeline to set a domain.
I specified the "us_futures" calendar when creating the bundle.
When I execute the run_pipeline code on a bundle containing US equities only, it works fine.
I didn't see any where in the Usage Instructions or API where I need to set a domain for Pipeline.
Here's the run_pipeline code I'm trying to run for reference.
from zipline.pipeline import Pipeline
from zipline.pipeline.factors import AverageDollarVolume, Returns
from zipline.research import run_pipeline
# Calculate 1-year returns for all stocks with 30-day average dollar volume > 10M
pipeline = Pipeline(
columns={
"1y_returns": Returns(window_length=252),
},
screen=AverageDollarVolume(window_length=30) > 10e6
)
factors = run_pipeline(pipeline, start_date="2018-01-02", end_date="2019-01-01", bundle="futures-edited-1d-bundle")
factors.tail()
Please advise.
David