Hi,
I'm trying to run DSWS request using a list of dscodes from a csv vile, but the code I'm using adds "[]" before and after the list, it's returning error. Here's my code
instruments= []
with open('DSCD list1.csv') as csvDataFile:
csvReader = csv.reader(csvDataFile)
for row in csvReader:
for ticker in row:
instruments.append(row[0])
ds.get_data(tickers=instruments,
fields=['SOHSDP032','SOHRDP0103'], start='-12Y', freq='Y')
Thank you.