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?