Advertisement
Guest User

Untitled

a guest
Dec 10th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. equities = {
  2. 'AAPL',
  3. 'QQQ',
  4. }
  5. register(
  6. 'test-bundle', # name this whatever you like
  7. yahoo_equities(equities),
  8. )
  9.  
  10. zipline ingest -b test-bundle
  11.  
  12. zipline bundles
  13.  
  14. test-bundle 2016-12-10 20:13:11.014192
  15.  
  16. zipline run -f ./test_algo.py --start 2016-12-01 --end 2016-12-9 -o output.pickle --bundle test-bundle
  17.  
  18. Traceback (most recent call last):
  19. File "/usr/local/lib64/python3.5/site-packages/pandas/core/indexing.py", line 1325, in _has_valid_type error()
  20. File "/usr/local/lib64/python3.5/site-packages/pandas/core/indexing.py", line 1320, in error (key, self.obj._get_axis_name(axis)))
  21. KeyError: 'the label [2016-12-08 00:00:00+00:00] is not in the [index]'
  22.  
  23. During handling of the above exception, another exception occurred:
  24. .... zipline stack trace
  25.  
  26. zipline run -f ./test_algo.py --start 2016-12-01 --end 2016-12-7 -o output.pickle --bundle test-bundle
  27.  
  28. [2016-12-10 20:17:11.519059] INFO: Performance: Simulated 5 trading days out of 5.
  29. [2016-12-10 20:17:11.519495] INFO: Performance: first open: 2016-12-01 14:31:00+00:00
  30. [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