I happend to note that the price of SPY in DIE and in Notebook are quite different. In the period I concern the SPY is not splited.
I happend to note that the price of SPY in DIE and in Notebook are quite different. In the period I concern the SPY is not splited.
The issue is with the end date used in 'get_pricing' . When using 'get_pricing' the prices are all split AND dividend adjusted AS OF THE END DATE in the 'get_pricing' call. In the IDE the prices returned by the 'data.history' method are adjusted as of the current backtest day.
Take a look at this post https://www.quantopian.com/posts/research-updates-get-pricing-and-jupyter-notebook-upgrade.
If you run 'get_pricing' ending the same day as a day in the IDE (eg 2015-11-03 in your example) they will be the same. See the attached notebook.