Hi,
i wanted to look at some of the pricing data from the last couple of weeks
in a notebook cell i put
spy_filter = StaticAssets([spy])
get_pricing(spy, start_date='2-5-2018', end_date='2-17-2018', fields='close_price')
giving
2018-02-05 00:00:00+00:00 264.18
2018-02-06 00:00:00+00:00 269.19
2018-02-07 00:00:00+00:00 267.65
2018-02-08 00:00:00+00:00 257.72
2018-02-09 00:00:00+00:00 261.69
2018-02-12 00:00:00+00:00 265.28
2018-02-13 00:00:00+00:00 266.02
2018-02-14 00:00:00+00:00 269.70
2018-02-15 00:00:00+00:00 273.01
2018-02-16 00:00:00+00:00 273.09
Freq: C, Name: Equity(8554 [SPY]), dtype: float64
and in another cell i put
spy = symbols('SPY')
spy_filter = StaticAssets([spy])
x_pipeline = Pipeline(
screen = spy_filter,
columns = {
'close' : USEquityPricing.close.latest,
}
)
results = run_pipeline(simple_beta_pipeline, '2-5-2018', '2-17-2018')
results
giving
close
2018-02-05 00:00:00+00:00 Equity(8554 [SPY]) 275.51
2018-02-06 00:00:00+00:00 Equity(8554 [SPY]) 264.18
2018-02-07 00:00:00+00:00 Equity(8554 [SPY]) 269.19
2018-02-08 00:00:00+00:00 Equity(8554 [SPY]) 267.65
2018-02-09 00:00:00+00:00 Equity(8554 [SPY]) 257.72
2018-02-12 00:00:00+00:00 Equity(8554 [SPY]) 261.69
2018-02-13 00:00:00+00:00 Equity(8554 [SPY]) 265.28
2018-02-14 00:00:00+00:00 Equity(8554 [SPY]) 266.02
2018-02-15 00:00:00+00:00 Equity(8554 [SPY]) 269.70
2018-02-16 00:00:00+00:00 Equity(8554 [SPY]) 273.01
2018-02-20 00:00:00+00:00 Equity(8554 [SPY]) 273.09
interestingly
the output values in the pipeline are all out by one day compared to get_pricing and have a last date of 20th Feb. Also the last entry of 273.09 is different than the value i have seen on different sites including yahoo finance (link is https://finance.yahoo.com/quote/SPY/history?p=SPY)
So my questions are :
1. what is going on ?
2. why is the last close price for SPY different in Quantopian than that published elsewhere ?
thanks for any help.
Regards,