For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials


3 0 1 3

Question from Client of DSS REST API

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).

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

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

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

python -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.
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

13.7k 26 8 12


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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.