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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 3 5 6

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

pythondss-rest-apidatascope-selectdssentityFTP
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.

Upvote
Accepted
13.7k 26 8 12

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

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.

@gabriel31, just an afterthought:

As a Python programmer you might benefit from reading the Programming without SDK tutorial.

Upvotes
3 3 5 6

Thank you for the quick response. That helps a lot

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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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