I downloaded below sample file.
https://developers.refinitiv.com/en/api-catalog/datascope-select/datascope-select-rest-api/download
Python Shareholder Rights Example Application
Updated on 5 Jan 2018.
dss-python-shareholder-r...mple.zip
562.98KB • 11 Sep 2020
When I run on VSC, it returns below error mgs under line 308.
Can you advise me what needs to be modified?
--------------------------------------------------------------------------------------------------------
PS C:\Temp\DSS\dss-python-shareholder-rights-sample> python fetchDSSshareHolderData.py
currDTstr=20210209164026
INFO, 20210209164026, Start time
INFO, 20210209164027, Successfully created token (STEP 1)
ERROR, 20210209164026, GET InstrumentListGetByName failed with 404
Traceback (most recent call last):
File "C:\Temp\DSS\dss-python-shareholder-rights-sample\fetchDSSshareHolderData.py", line 545, in <module>
main(sys.argv[1:])
File "C:\Temp\DSS\dss-python-shareholder-rights-sample\fetchDSSshareHolderData.py", line 478, in main
listId = getListId(headers2)
File "C:\Temp\DSS\dss-python-shareholder-rights-sample\fetchDSSshareHolderData.py", line 308, in getListId
print ('ERROR, ' + datetime.datetime.strftime(datetime.datetime.now(), "%Y%m%d%H%M%S") + ',' + k)
TypeError: can only concatenate str (not "dict") to str
--------------------------------------------------------------------------------------------------------