Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- equities = {
- 'AAPL',
- 'QQQ',
- }
- register(
- 'test-bundle', # name this whatever you like
- yahoo_equities(equities),
- )
- zipline ingest -b test-bundle
- zipline bundles
- test-bundle 2016-12-10 20:13:11.014192
- zipline run -f ./test_algo.py --start 2016-12-01 --end 2016-12-9 -o output.pickle --bundle test-bundle
- Traceback (most recent call last):
- File "/usr/local/lib64/python3.5/site-packages/pandas/core/indexing.py", line 1325, in _has_valid_type error()
- File "/usr/local/lib64/python3.5/site-packages/pandas/core/indexing.py", line 1320, in error (key, self.obj._get_axis_name(axis)))
- KeyError: 'the label [2016-12-08 00:00:00+00:00] is not in the [index]'
- During handling of the above exception, another exception occurred:
- .... zipline stack trace
- zipline run -f ./test_algo.py --start 2016-12-01 --end 2016-12-7 -o output.pickle --bundle test-bundle
- [2016-12-10 20:17:11.519059] INFO: Performance: Simulated 5 trading days out of 5.
- [2016-12-10 20:17:11.519495] INFO: Performance: first open: 2016-12-01 14:31:00+00:00
- [2016-12-10 20:17:11.519770] INFO: Performance: last close: 2016-12-07 21:00:00+00:00
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement