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

Best Answer
-
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"
}
],0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 251 ETA
- 555 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 643 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 916 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛