Intraday Embargoed data problem C# app

Hi,

I tried to get the Intraday embargoed data via C# Console app(RESTAPI) . I can get the data 15 mins delay via postman app but on my C# app(RESTAPI) no data returns. Does it have any tricks to get the data on code? I increased the timeout but nothing has changed.


Best Answer

  • Jirapongse
    Answer ✓

    @eren

    In the C# code, you need to check the HTTP status code in the response.

    If the status code is 202, it means that the extraction result is still not ready. Therefore, you need to get the Location of URL from the HTTP headers.

    1625129666966.png

    Use that URL in the Location to query for the result. The result is ready when the HTTP status code is 200.

    Please refer to the following tutorials:

    Moreover, you are using the old endpoint: https://hosted.datascopeapi.reuters.com/. Please update the code to use the new endpoint: https://selectapi.datascope.refinitiv.com/. Moreover, with the new endpoint, the @data.type in the body should be changed from ThomsonReuters.Dss.Api.* to DataScope.Select.Api.*, as shown below.

    {
      "ExtractionRequest": {
        "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.IntradayPricingExtractionRequest",
        "ContentFieldNames": [
          "RIC",
          "Mid Spread",
          "Universal Bid Ask Date",
          "Settlement Date",
          "Close Mark Mid Spread",
          "Last Price",
          "Close Yield",
          "Trade Date"
        ],
        "IdentifierList": {
          "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
          "InstrumentIdentifiers": [
            {
              "Identifier": "TRGV5YUSAC=R",
              "IdentifierType": "Ric"
            },
    ...

    For more information, please refer to Refinitiv Datascope Select API Migration Tutorial.

Answers