DSS Python Shareholder Rights Example Application

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
--------------------------------------------------------------------------------------------------------
Best Answer
-
Here is the response before/after importing the Entity and Instrument lists.
currDTstr=20210209092921
INFO, 20210209092921, Start time
INFO, 20210209092922, Successfully created token (STEP 1)
ERROR, 20210209092921, GET InstrumentListGetByName failed with 404
Traceback (most recent call last):
File "fetchDSSshareHolderData.py", line 545, in <module>
main(sys.argv[1:])
File "fetchDSSshareHolderData.py", line 478, in main
listId = getListId(headers2)
File "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 strAfter:
currDTstr=20210209094605
INFO, 20210209094605, Start time
INFO, 20210209094606, Successfully created token (STEP 1)
INFO, 20210209094607, Fetched Instrument ListId for API_ShareHolder_Disclosure_InstrumentList sucessfully where ListId = 0x076fa6a1e0573d01 and Count = 26 (STEP 2)
INFO, 20210209094607, Fetched Entity ListId for API_ShareHolder_Disclosure_EntityList sucessfully where ListId = 0x076fa9ec1aa73d0e and Count = 24029 (STEP 3)
INFO, 20210209094608, Number of Report Templates is 4 (STEP 4)
INFO, 20210209094608, Current Report Template name = Demo_TicksTrades_Template (0x05f1623b11ab2f86) of type = THT (STEP5)
INFO, 20210209094608, Current Report Template name = IDReport (0x05af5bcd275b2f96) of type = IDP (STEP 5)
INFO, 20210209094608, Current Report Template name = export-xml.suffix.5D99E77C (0x05fa6722184b2f76) of type = EOD (STEP 5)
INFO, 20210209094608, Current Report Template name = export-xml.suffix.718D8638 (0x05fa66ee489b2f96) of type = EOD (STEP 5)
INFO, 20210209094608, End time0
Answers
-
Hello @aya.nakamura3
Have you imported the CSV files into the GUI as described in the Readme file?
0 -
Thank you very much!
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 24 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 279 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 714 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛