Question from Client of DSS REST API

Options

Client is getting below error while accessing instrument list.

Looking at the Python Shareholder Rights Example Application
code for the DSS (which has a few typos by the way).

https://developers.thomsonreuters.com/datascope-select-dss/datascope-select-rest-api/downloads

I am getting the following errors, when I run the script in
the following ways. Why is this?

python fetchDSSshareHolderData.py -U 9015636 -P 'xxxxx'
-B BasketPositions.csv

  • ERROR,
    20171227175243,InstrumentList of name
    'API_ShareHolder_Disclosure_InstrumentList' not found.

python fetchDSSshareHolderData.py -U 9015636 -P 'xxxxx'
-B BasketPositions.csv -R API_ShareHolder_Disclosure_InstrumentList.csv

  • ERROR,
    20171227175637,InstrumentList of name
    'API_ShareHolder_Disclosure_InstrumentList.csv' not found.

Best Answer

  • @mushtaq.nathani,

    Error: InstrumentList of name xyz not found

    The Python script expects to find a pre-existing instrument list saved on the DSS server. That is not a local file (i.e. a csv) but an instrument list created in DSS. To create such a list you can use the DSS GUI, and import the RICs from the sample CSV, as stated in the README.txt:

    - API_ShareHolder_Disclosure_InstrumentList.csv: RIC list used by default and must be imported into DSS via browser interface first

    The script expects to find an instrument list with this specific name: API_ShareHolder_Disclosure_InstrumentList.

    Parameter -R allows you to tell the Python script to use a different instrument list name, in case of need.

    This (and more) is explained in the comments at the top of the python script.

    Edit: added:

    The screenshot shows:

    1. The instrument list saved on the DSS server, with the default name (which means parameter -R is not required)
    2. The instrument list was populated by importing the API_ShareHolder_Disclosure_InstrumentList.csv file, using the highlighted button.

    image

Answers

  • @christiaan.Meihsl

    The client is referred to the TRDC
    portal but he put the question directly. Can u explain the code and the error with 'API_ShareHolder_Disclosure_InstrumentList'.