question

Upvotes
Accepted
3 0 0 1

How to set RIC starting with a slash in DSS

I am trying to get a RIC that starts with a slash (ex "/EUR=") in the DSS API, but it is not working.

How do I set the slash?

  • I have successfully obtained a RIC that does not start with a slash. (ex "EUR=")
  • When I try to get the RIC from the web console with the same account, it succeeds.


requestURL:

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

requestJSON:

{
    "ExtractionRequest": {
        "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.TickHistoryIntradaySummariesExtractionRequest",
    "ContentFieldNames": [
        "Open",
        "High",
        "Low",
        "Open Bid",
        "High Bid",
        "Low Bid",
        "Close Bid",
        "Open Ask",
        "High Ask",
        "Low Ask",
        "Close Ask",
        "Open Yield",
        "High Yield",
        "Low Yield",
        "Close Yield",
        "Open Ask Size",
        "High Ask Size",
        "Low Ask Size",
        "Close Ask Size",
        "Open Mid Price",
        "High Mid Price",
        "Low Mid Price",
        "Close Mid Price"
      ],
    "IdentifierList": {
          "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",  
      "InstrumentIdentifiers": [
        {
            "Identifier": "/EUR=",
            "IdentifierType": "Ric"
        }
        ]
    },
    "Condition": {
      "MessageTimeStampIn": "GmtUtc",
      "ReportDateRangeType": "Range",
      "QueryStartDate": "",
      "QueryEndDate": "",
      "SummaryInterval": "OneHour"
    }
  }
}
#technologytick-history-rest-apiapi
icon clock
10 |1500

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

1 Answer

· Write an Answer
Upvotes
Accepted
76.7k 238 52 72

@shinichi.hashiba.mhir

Thanks for reaching out to us.

Please try to set the AllowOpenAccessInstruments to True in the ValidationOptions property.

{
    "ExtractionRequest": {
        "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.TickHistoryIntradaySummariesExtractionRequest",
        "ContentFieldNames": [
            "Close Ask",
            "Close Bid",
            "High",
            "High Ask",
            "High Bid",
            "Last",
            "Low",
            "Low Ask",
            "Low Bid",
            "No. Asks",
            "No. Bids",
            "No. Trades",
            "Open",
            "Open Ask",
            "Open Bid",
            "Volume"
        ],
        "IdentifierList": {
            "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
            "InstrumentIdentifiers": [
                {
                    "Identifier": "/EUR=",
                    "IdentifierType": "Ric"
                }
            ],
            "ValidationOptions": {
                "AllowOpenAccessInstruments": true
            }
        },
        "Condition": {
            "MessageTimeStampIn": "GmtUtc",
            "ReportDateRangeType": "Range",
            "QueryStartDate": "2022-11-27T00:00:00.000Z",
            "QueryEndDate": "2022-11-30T00:00:00.000Z",
            "SummaryInterval": "OneHour",
            "TimebarPersistence": true,
            "DisplaySourceRIC": true
        }
    }
}
icon clock
10 |1500

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

Thanks! Setting that option worked fine.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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