How to get all currency exchange rate using REST API (from Currency, To Currency, Exchange Rate a...

How to get all currency exchange rate using REST API (from Currency, To Currency, Exchange Rate and Exchange Date ) Let me know DSS API Name to get these exchange rate

Best Answer

  • @abhishek.tripathi,

    To get all currency exchange rate, you need to know the instrument id providing currency exchange rate, and extract data with IntradayPricing Report template. Below is the sample OnDemand extraction request to extract intraday data for Chain RIC <WX=>, Major current cross rates and <FX=> World spot.

    For more information regarding RIC name and content, I advise
    you to open a content-related enquiry via MyRefinitiv.

    POST https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractWithNotes
    {
    "ExtractionRequest": {
    "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.IntradayPricingExtractionRequest",
    "ContentFieldNames": [
    "Bid Price",
    "Ask Price"
    ],
    "IdentifierList": {
    "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
    "InstrumentIdentifiers": [
    {
    "IdentifierType": "ChainRIC",
    "Identifier": "FX="
    },
    {
    "IdentifierType": "ChainRIC",
    "Identifier": "WX="
    }
    ],
    "ValidationOptions": null,
    "UseUserPreferencesForValidationOptions": true
    }
    }
    }