Unable to load custom bundle due to format issue, I am following this guide: https://zipline.ml4trading.io/bundles.html, when ingesting the bundle via zipline I am getting the below error:
File "/home/julio/Projects/101/finance/zipline/venv/lib/python3.8/site-packages/zipline/data/bcolz_daily_bars.py", line 161, in __init__ raise ValueError("Start session %s is invalid!" % start_session) ValueError: Start session 2016-01-04 is invalid!
extensions.py:
`start_session = pd.Timestamp('2016-1-1', tz='utc')
end_session = pd.Timestamp('2018-1-1', tz='utc')
Dear Zipline Maintainers,
Before I tell you about my issue, let me describe my environment:
Environment
Description of Issue
Unable to load custom bundle due to format issue, I am following this guide: https://zipline.ml4trading.io/bundles.html, when ingesting the bundle via zipline I am getting the below error:
File "/home/julio/Projects/101/finance/zipline/venv/lib/python3.8/site-packages/zipline/data/bcolz_daily_bars.py", line 161, in __init__ raise ValueError("Start session %s is invalid!" % start_session) ValueError: Start session 2016-01-04 is invalid!
extensions.py: `start_session = pd.Timestamp('2016-1-1', tz='utc') end_session = pd.Timestamp('2018-1-1', tz='utc')register( 'custom-aapl', csvdir_equities( ['daily'], '/home/julio/Projects/101/finance/zipline/install/MarketData', ), calendar_name='NYSE', # US equities start_session=start_session, end_session=end_session )`
aapl.csv:
Date,High,Low,Open,Close,Volume,Adj Close 2016-01-04,26.342500686645508,25.5,25.65250015258789,26.337499618530273,270597600.0,24.15149688720703 2016-01-05,26.462499618530273,25.602500915527344,26.4375,25.677499771118164,223164000.0,23.54627799987793
tree:MarketData/ └── Daily └── aapl.csv
What steps have you taken to resolve this already?
I have tried to change the date format to match csv's format, still not working...
Anything else?
...
Sincerely, Julio Guerrero