Open jb33k opened 3 years ago
How did you solve this problem? I have the same problem right now.
from zipline.pipeline.domain import EquityCalendarDomain
and change domain=EquityCalendarDomain("??", "24/7")
in Pipeline()
In my case, ??
is from checking the assets-7.sqlite file in the ingested data
replace ??
with the country_code
in the exchanges
table in assets-7.sqlite and 24/7
with desired calendar_name
I believe there is a way to specify the country_code
during ingest somehow, but I haven't figure our how..
Environment
Description of Issue
I'm trying to follow single alpha factor example (https://github.com/stefan-jansen/machine-learning-for-trading/blob/master/04_alpha_factor_research/04_single_factor_zipline.ipynb) using Binance 1m OHCLV data with always open calendar, but I'm getting
ValueError: Unable to determine domain for Pipeline.
error even if I passGENERIC
domain.ValueError: Unable to determine domain for Pipeline.
error.Here is how you can reproduce this issue on your machine:
Reproduction Steps
04_single_factor_zipline
example with modifications in therun_algorithm
(below)run_algorithm
What steps have you taken to resolve this already?
I tried to import GENERIC domain and add it manually to Pipeline but didn't work. I'm a total newbie with Zipline, so I have no idea how to debug this further.