DSS API RATING AGENCY

We can see the CUSIP fields when searching on the Data Scope Select website. However, pulling the fields using our API application gives this error:image-4.png


DataScope.Select.Api.ValidationException HResult=0x80131500 Message=Validation Errors:Invalid content FieldName "Rating Agency" ReportDateRangeType of "NoRange" is not valid for this report template type. SelectedItemCode "RTG.DtRange.NONE" is not a valid SelectedItemCode for selection type "RTG.DtRange". RawValue "NONE" is invalid for selection type "RTG.DtRange". Source=DataScope.Select.RestApi.Client StackTrace:



Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @nikhil.ms

    Thank you for reaching out to us.

    You can check the LSEG DataScope Select Data Content Guide that provides definitions of all of the data fields available in LSEG DataScope Select.

    I found the Moodys Rating Date and Moodys Rating fields in the Composite report template.

    I sent the following request to the https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractWithNotes endpoint.

    {
        "ExtractionRequest": {
            "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.CompositeExtractionRequest",
            "ContentFieldNames": [
                "Moodys Rating Date",
    "Moodys Rating"

            ],
            "IdentifierList": {
                "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
                "InstrumentIdentifiers": [
                    {
                        "Identifier": "034074EX8",
                        "IdentifierType": "Cusip"
                    }
                ],
                "ValidationOptions": {
                    "AllowHistoricalInstruments": true
                }
            }
        }
    }

    The output is:

    1731061634226.png