For a deeper look into our DataScope Select SOAP API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
24 2 0 4

DSS - Currency Scaling in POST {<!-- -->{protocol}}{<!-- -->{host}}{<!-- -->{api}}Extractions/ExtractWithNotes

We are trying to extract historical data for currency cross-rates using the service POST { {protocol}}{ {host}}{ {api}}Extractions/ExtractWithNotes. Let us assumer for example we are looking for the historical data for IDR/EUR (i.e. Ric: IDREUR=R). In this case our call to the service layer looks as follows:


{
  "ExtractionRequest": {
    "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TimeSeriesExtractionRequest",
    "ContentFieldNames": [
      "Trade Date",
      "Universal Close Price",
      "Currency Code"          
    ],
    "IdentifierList": {
      "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",  
      "InstrumentIdentifiers": [
{ "Identifier": "IDREUR=R", "IdentifierType": "Ric"}
      ]
    },
    "Condition":
        "LastPriceOnly": false,
        "StartDate": "2019-12-01T00:00:00.000Z",
        "EndDate": "2019-12-04T00:00:00.000Z"
    }
  }
}

We noticed that the currency rates returned by the above call are scaled (i.e. there is a factor of 10'000). For example according to DSS data EUR/IDR (EURIDR=R) on 2019-12-02 was 15640.72 while IDR/EUR (IDREUR=R) on the same date was 0.6386. This indicates there is a 10000 scaling factor applied to IDR/EUR on the prices returned by the service.


Is it possible to pass a parameter in the above service call to return the data without any scaling?

dss-rest-apidatascope-selectdssforex
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
11.3k 25 8 13

Hi @dimitrakopoulos

I cannot find this option for TimeSeriesExtractionRequest. You are able to get the scaling factor of this RIC in the "FXIR Scaling Factor" of the TermAndConditionExtractionRequest. Below is the sample of results.

        {
            "IdentifierType": "Ric",
            "Identifier": "IDREUR=R",
            "FXIR Scaling Factor": 10000
        }

According to Release note for DSS version 13.2, the TimeSeries Pricing will removed, you may need to use PriceHistoryExtractionRequest instead.

As announced in PCN 10897, the legacy Timeseries Pricing and Single Historical Price reports will be removed from the DataScope Select historical pricing offering and replaced with the newer Price History and Single Price History reports as of 28 February 2020. 
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Thank you very much for the feedback - 100% clear and understood :)

Upvotes
1 0 0 0

What is TermAndConditionExtractionRequest ???? I can't find such request... How can I get 'Cross Scaling Factor' ?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea