I'd liuke to pass a list of tickers:
stocks = ds.get_data(tickers= list, fields=['P'], start = '-1Y', end = '-0d', freq = 'D')
It sthat possible?
Thanks
I'd liuke to pass a list of tickers:
stocks = ds.get_data(tickers= list, fields=['P'], start = '-1Y', end = '-0d', freq = 'D')
It sthat possible?
Thanks
Hello @tikhon.savrasov
Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.
Thanks,
AHS
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS
Refer to the DataStream GETTING STARTED WITH PYTHON guide, it accepts a comma-separated string.
If you need to use a list, you need to convert it to a comma-separated string.
stocks = ds.get_data(tickers= ','.join(list), fields=['P'], start = '-1Y', end = '-0d', freq = 'D')