Error when trying to create an instrument list for FileCode 66

Hi, my client is trying to create an instrument list for file code 66 using the following code but it is not working, any ideas? {"ExtractionRequest":{"@odata.type":"#ThomsonReuters.Dss.Api.Extractions.SubjectLists.InstrumentListItem","Identifier":"66","IdentifierType":"FileCode"}} It seemed to return a malformed request content error back. Could you tell me what I got wrong please?

Best Answer

  • Hi @Johan.Hempel

    According to this question, if the client wants to extract data for file code: 66. The request message should contain all attributes required by each report template. The example of request is in the "On Demand..." tutorials on this page. For example, below is the request for the TermsAndConditons report template.

    POST https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractWithNotes
    {
    "ExtractionRequest": {
    "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TermsAndConditionsExtractionRequest",
    "ContentFieldNames": [
    "RIC", "ISIN","SEDOL", "CUSIP"
    ],
    "IdentifierList": {
    "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
    "InstrumentIdentifiers": [
    { "Identifier": "66", "IdentifierType": "FileCode" }
    ]
    }
    }
    }

Answers