I'm using zipline and trying to add a custom calendar to the system so that I can apply it to our country's exchange.
I've looked up on stackoverflow and found this post : How to use a custom calendar in a custom zipline bundle?
However, I couldn't find the directory zipline/utils/calendars mentioned on the post, in which I should find the calendar python files. It seems to be deprecated. So I'm currently lost on how I should tune the trading calendar on this zipline library in order to fulfill my needs. Any solutions, suggestions or links are welcomed.
Thank you in advance.
EDIT : I'm using python3.5 on mac, and the zipline version seems to be 1.3.0
In version 1.3.0 zipline uses trading_calendars module from quantopian. You have to install it via pip and then you can use it in your project:
List of supported calendars you can find in github: trading_calendars
If you would like to create your own calendar, you have to create your calendar class in similar way like the old one which is described here: trading_calendars zipline documentation Then to use it, you need to register it with
register_calendar(). So in the end it should be similar to this: