DataScopeSelect mandatory name changes - PriceHistoryExtractionRequest

davet1
davet1 Explorer

I made the changes to our system that were communicated to us, but I am unable to make it work.


For example, I make this request:

{
  "ExtractionRequest": {
    "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.PriceHistoryExtractionRequest",
    "ContentFieldNames": [
      "RIC",
      "High Price",
      "Low Price",
      "Universal Close Price",
      "Trade Date"
    ],
    "IdentifierList": {
      "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
      "InstrumentIdentifiers": [
        {
          "Identifier": "AAPL.OQ",
          "IdentifierType": "Ric"
        }
      ]
    },
    "Condition": {
      "AdjustedPrices": true,
      "QueryStartDate": "2010-05-12T12:43:17.137Z",
      "QueryEndDate": "2021-05-12T12:43:17.137Z"
    }
  }
}

to

https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractRaw


Then I get an ExtractRawResult which I follow to its RawExtractionResults which says to me


{
  "error": {
    "code": "EntitySetController Unmapped Request ErrorCode",
    "message": "EntitySetController Unmapped Request ~/entityset/key/unresolved"
  }
}

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @davet1

    It works fine for me.

    First, I sent the request to /Extractions/ExtractRaw and got the following response.

    image

    The response contains the JobId so I use the JobId with Extractions/RawExtractionResults('{{jobId}}')/$value and get the data.

    image

Answers