I'm trying to download price time series for all constituents of s&p500 stocks using below:
import DatastreamDSWS as dsws
ds = dsws.Datastream(username='******',password='******')
df = ds.get_data(tickers="LS&PCOMP|L",fields =["P"], start ='2020-01-01',end = '-5D',kind=1)
print(df)
However I am receiving error msg. Pls advise. Thank you