zipline icon indicating copy to clipboard operation
zipline copied to clipboard

Extension.py has to be run manually before loading data

Open rcardinaux opened this issue 4 years ago • 2 comments

Dear Zipline Maintainers,

Before I tell you about my issue, let me describe my environment:

Environment

  • Operating System: Windows 10 Version 1909
  • Python Version: python 3.5.6
  • How did you install Zipline: conda

Now that you know a little about me, let me tell you about the issue I am having:

Description of Issue

I have to run the register function in the script extension.py every time I reconnect to my python editor and run bundle.load(...). As far as I understood reading the zipline documentation, I should not even have to worry about extension.py once I wrote the register function correctly.

It is very basic, and maybe I got something really wrong, but I posted the question in the google group two weeks ago, and did not get any help: https://groups.google.com/g/zipline/c/Nix8p9gxyH4

I am working with custom data, but also had this same issue with the default data set "quantopian-quandl". Maybe something is missing in my extension.py file, so here it is:

from zipline.data.bundles import register, custom_data

register('custom_data',custom_data.ingest, calendar_name='NYSE')

Please note that once I run extension.py, everything works fine and I can load my data.

What steps have you taken to resolve this already?

I have browsed other issues but could not find anything similar.

Sincerely, Rapha

rcardinaux avatar Sep 15 '20 22:09 rcardinaux

register('backtest-bundle', csvdir_equities(['daily'], '/Users/cemalarican/Desktop/BACKTESTING'), start_session=start, end_session=end)

I also work with my own data. This is how I did it for my own data in the extensions.py file

cemal95 avatar Sep 16 '20 12:09 cemal95

Thanks for info @cemal95.

Unfortunately, I get the same issue when working with csv and a similar register function.

rcardinaux avatar Sep 18 '20 21:09 rcardinaux