Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
load_bars_from_yahoo price data incorrect

I have below code to retrieve the stock price:

from zipline.utils.factory import load_bars_from_yahoo  
import matplotlib.pyplot as plt  
import pandas as pd

end = pd.Timestamp.utcnow()  
start = end - 2500 * pd.tseries.offsets.BDay()  
data = load_bars_from_yahoo(stocks=['IBM', 'GLD', 'XOM', 'AAPL', 'MSFT', 'TLT', 'SHY'],start=start,end=end)

a= data.loc[:, :,'price']  
print a  

Last row Result:
2017-09-01 00:00:00+00:00 3348500.0 11401700.0 7340800.0 16552800.0 21706200.0 14124700.0 943600.0

The price are way too huge and and not reflect the real closing price.

Why was it?

1 response

any answer?