hi,
i'm trying to get price from a list of stock and create a dataframe with the price of each stock in different columns, the code is the following.
import pandas as pd
import numpy as np
this is the list of stock i want the price in the new dataframe
universe = ['AAPL','KO','TSLA','PFE','GOLD','WFC','ABEV','DIS','VIST','HMY','AMGN','INTC','BBD','VALE','AUY','AMZN','QCOM']
for item in range(len(universe)):
stock = get_pricing(universe[item],start_date='2010-01-01',end_date='2020-9-14',frequency='daily')
#for each stock of the list i create a new column on the dataframe cedears
cedears[universe[item]] = pd.DataFrame(stock['price'])
cedears.head()
AAPL KO TSLA PFE GOLD WFC ABEV DIS VIST HMY AMGN INTC BBD VALE AUY AMZN QCOM
0 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
1 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
2 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
3 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
4 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN
the dataframe as no date in the index and all the values are NaN. i cant find whats missing.
can you help me ??