zipline
zipline copied to clipboard
possible timezone mismatch
Hi,
When running an algorithm it prints messages like in the tutorial:
http://nbviewer.ipython.org/github/quantopian/zipline/blob/master/docs/tutorial.ipynb [2014-07-25 17:11] INFO: Performance: Simulated 3019 trading days out of 3019. [2014-07-25 17:11] INFO: Performance: first open: 2000-01-03 14:31:00+00:00 [2014-07-25 17:11] INFO: Performance: last close: 2011-12-30 21:00:00+00:00
The time reported is not market time (which is confusing), it is UTC. However, market data like Yahoo is local to the market, Forcing the code to localize and convert to/from UTC all over.
This is two fold:
- validate that all timezone conversions are correct
- simplify timezone handling.
Marry Christmas and a happy new year Shlomo