Hi guys ,
I need your help.
In the "Introduction Pair Trading" Lecture , I've found this piece of code :
symbol_list = ['ABGB', 'FSLR']
prices_df = get_pricing(symbol_list, fields=['price'], start_date='2015-01-01', end_date='2016-01-01')['price']
prices_df.columns = map(lambda x: x.symbol, prices_df.columns)
Actually , I'm working on Jupyter notebook not quantopian so I would like to find another way to write as "get_pricing" and "symbol" are quantopian keywords
I managed to do this :
symbol_list = ['ABGB', 'ASTI', 'CSUN', 'DQ', 'FSLR','SPY']
start_date='2014-01-01'
end_date='2015-01-01'
df_close = data.DataReader(symbol_list, 'yahoo', start_date, end_date)["Close"]
prices_df.columns = map(lambda x: x.?????????, prices_df.columns)
But , I really don't know what I have to put in ????????? to select I guess all the tickers ....