DSS REST API - empty response if number of ISINs exceeds 250

anna.dolata01
edited February 14 in DSS

The issue is when client try to extract more than 250 ISIN, they get an empty answer from the server. Please note that if client use 10 isins, client can extract with API perfectly, if client repeat those isin 100 times (so 1000 total isin requested) client get an empty answer, so the isins are not the problem.

The problem is not with Datascope, client can pull the data they need on GUI. They need to make the API works.

In relation to the source, it is not an * repeated but is a None (empty) value repeated (*) for the length of the isin list. If client run the API pull script with 10 isin it works, if the list of isin is those 10 isins repeated 100 times it give me back an empty answer. So the problem is not related to the isins.

Please see attached the function to import the data.

Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @anna.dolata01

    Thank you for reaching out to us.

    When requesing a lot of items, it is possible that the response will be 202. This indicates that the server is still processing the extraction.

    image.png

    The HTTP status of the response will be 202 and the HTTP headers will contain the Location field. The value in the Location field contains a polling URL. The client need to poll this URL until the HTTP status code in the reponse is 200.

    For more information, please refer to the REST API Tutorial 2: On Demand End of Day Extraction tutorial in the Request accepted, but with a timeout section and the Async guide.