Can anyone help me understand why these prices are different? is prices() not returning closing price?
from quantopian.research import prices
print prices(
assets=symbols('ARNC'),
start='2015-04-15',
end='2015-05-11',
)
2015-04-15 00:00:00+00:00 13.311
2015-04-16 00:00:00+00:00 13.431
2015-04-17 00:00:00+00:00 13.441
2015-04-20 00:00:00+00:00 13.550
2015-04-21 00:00:00+00:00 13.490
2015-04-22 00:00:00+00:00 13.530
2015-04-23 00:00:00+00:00 13.151
2015-04-24 00:00:00+00:00 13.181
2015-04-27 00:00:00+00:00 13.421
2015-04-28 00:00:00+00:00 13.451
2015-04-29 00:00:00+00:00 13.580
2015-04-30 00:00:00+00:00 13.391
2015-05-01 00:00:00+00:00 14.119
2015-05-04 00:00:00+00:00 13.984
2015-05-05 00:00:00+00:00 13.800
2015-05-06 00:00:00+00:00 13.680
2015-05-07 00:00:00+00:00 13.705
2015-05-08 00:00:00+00:00 13.820
2015-05-11 00:00:00+00:00 13.650
Freq: C, Name: Equity(2 [ARNC]), dtype: float64
from quantopian.pipeline import Pipeline
from quantopian.pipeline.data import USEquityPricing
from quantopian.pipeline.experimental import QTradableStocksUS
from quantopian.research import run_pipeline
def make_pipeline():
uni = QTradableStocksUS()
close_price = USEquityPricing.close.latest
return Pipeline(
columns={
'close_price': close_price,
},
screen=uni
)
data = run_pipeline(
make_pipeline(),
'2015-04-15',
'2015-05-10',
)
data.xs(
symbols('ARNC'),
level=1
)
close_price
2015-04-15 00:00:00+00:00 13.375
2015-04-16 00:00:00+00:00 13.340
2015-04-17 00:00:00+00:00 13.460
2015-04-20 00:00:00+00:00 13.470
2015-04-21 00:00:00+00:00 13.580
2015-04-22 00:00:00+00:00 13.520
2015-04-23 00:00:00+00:00 13.560
2015-04-24 00:00:00+00:00 13.180
2015-04-27 00:00:00+00:00 13.210
2015-04-28 00:00:00+00:00 13.450
2015-04-29 00:00:00+00:00 13.480
2015-04-30 00:00:00+00:00 13.610
2015-05-01 00:00:00+00:00 13.420
2015-05-04 00:00:00+00:00 14.150
2015-05-05 00:00:00+00:00 14.015
2015-05-06 00:00:00+00:00 13.830
2015-05-07 00:00:00+00:00 13.680
2015-05-08 00:00:00+00:00 13.705
2015-05-11 00:00:00+00:00 13.820