Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • DSS /
avatar image
REFINITIV
Question by Nicolas.Basualto1 · Feb 07, 2018 at 09:58 AM · api rest

Hi, do you guys know how to add user defined identifiers in API Rest?

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Robert Gross · Feb 07, 2018 at 04:57 PM

The user defined identifier fields can be added to each identifier. Up to 6 user defined identifier fields are available, (UserDefinedIdentifier, UserDefinedIdentifier2, UserDefinedIdentifier3, UserDefinedIdentifier4, UserDefinedIdentifier5, UserDefinedIdentifier6). These fields are simple text fields designed to allow the user to associate their own identifying string to the instrument which can be passed through to extraction result. The user defined identifier values can be added were ever the instruments are defined by using the appropriate user defined field, (shown above).

Here is an example of populating the user defined identifiers using the ExtractionRequests.EndOfDayPricingExtractionRequest method:

POST https: //hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractWithNotesHTTP/1.1Authorization: Token<your_auth_token_goes_here>Prefer: respond-asyncContent-Type: application/json;odata=minimalmetadata
{
"ExtractionRequest": {"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.EndOfDayPricingExtractionRequest","ContentFieldNames": ["Asset Status","Asset Type","Bid Price","Currency Code","CUSIP","File Code","Ask Price","High Price","Low Price","Mid Price","Volume","Net Asset Value","Offer Price","Official Close Price","Open Price","Previous Close Price","RIC","Security Description","SEDOL","Ticker","Trade Date"],

"IdentifierList": {"@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
"InstrumentIdentifiers": [
{"Identifier": "IBM.N","IdentifierType": "Ric","UserDefinedIdentifier": "MyIBMId","UserDefinedIdentifier2": "MySecondIBMId"},
{"Identifier": "KO.N","IdentifierType": "Ric","UserDefinedIdentifier": "MyCocaColaId"}],
"ValidationOptions": null,
"UseUserPreferencesForValidationOptions": false},
"Condition": null}

}

HTTP/1.1200OK
{
"@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.ExtractionResult",
"Contents": [
{"IdentifierType": "Ric",
"Identifier": "IBM.N",
"UserDefinedIdentifier": "MyIBMId",
"UserDefinedIdentifier2": "MySecondIBMId",
"Asset Status": "ISS",
"Asset Type": "EQTY",
"Bid Price": 153.84,
"Currency Code": "USD",
"CUSIP": "459200101",
"File Code": "77",
"Ask Price": 153.85,
"High Price": 155.33,
"Low Price": 153.39,
"Mid Price": 153.845,
"Volume": 1744215,
"Net Asset Value": -9999301,
"Offer Price": -9999301,
"Official Close Price": -9999301,
"Open Price": 154.17,
"Previous Close Price": 155.34,
"RIC": "IBM.N",
"Security Description": "INTERNATIONAL BUSINESS MACHINES ORD",
"SEDOL": "2005973",
"Ticker": "IBM",
"Trade Date": "2018-02-07"
},

{"IdentifierType": "Ric",
"Identifier": "KO.N",
"UserDefinedIdentifier": "MyCocaColaId",
"Asset Status": "ISS",
"Asset Type": "EQTY",
"Bid Price": 44.56,
"Currency Code": "USD",
"CUSIP": "191216100",
"File Code": "77",
"Ask Price": 44.57,
"High Price": 45.495,
"Low Price": 44.29,
"Mid Price": 44.565,
"Volume": 5578891,
"Net Asset Value": -9999301,
"Offer Price": -9999301,
"Official Close Price": -9999301,
"Open Price": 44.52,
"Previous Close Price": 44.67,
"RIC": "KO.N",
"Security Description": "COCA-COLA ORD",
"SEDOL": "2206657",
"Ticker": "KO",
"Trade Date": "2018-02-07"
}
],

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
11 People are following this question.

Related Questions

import instrument list via API

REST API BondScheduleExtractionRequest

Get the exchange rates list by Instrument List Id

How do you change timestep of best limit quote to minute in API REST extraction?

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges