Upload Entity List to DSS via Python API

Hello - Is it possible to upload an Entity/Instrument list via the Python API? I found the tutorial using C# and XML calls, but can't seem to locate the python specific tutorial. Below is the tutorial I found so far...

https://developers.refinitiv.com/datascope-select-dss/datascope-select-rest-api/learning?content=5813&type=learning_material_item

It seems like an FTP has to be used in order to upload the entity list.

Thanks for your help

Best Answer

  • gabriel31,

    There is no specific Python tutorial to upload an entity / instrument list. We have one Python sample for a scheduled request (Python Shareholder Rights Example Application) which uses lists imported manually using the DSS GUI, but that is just an example; there are other ways to do things, using the API.

    You can upload an entity / instrument list via the API, by submitting the appropriate requests using Python (FTP is not required).

    One way to find the required HTTP requests is by using the C# example application (described here). Open the application, log in using your DSS credentials, then, in the left menu, open Entity List Examples or Instrument List Examples. They both contain a whole set of samples to create, update, delete and otherwise manage entity / instrument lists. After running a sample, you will see the HTTP requests by clicking on the HTTP tab. Once you have found the API calls you want to use (which depend on the workflow you want to implement), you can easily create them in HTTP in Python.

    REST API tutorial 10 explains how to create a new instrument list, and append instruments to it, using HTTP calls that you can also use as examples to program in Python.

Answers