EMA Webinar Nov 2: How can we convert Enum data?
Best Answer
-
EMA Java does not provide interface to get decoded enum value. EMA Java
keeps the dictionaries (RDMFieldDictionary and enumtype.def) internally.
However, EMA Java is open source so you can modify it to get decoded enum value
according to the enum dictionary it has loaded. The example source code to
modify EMA Java for converting enum can be found in https://community.developers.refinitiv.com/questions/6595/decoding-fieldlist-contents-with-field-and-enumera.html0
Answers
-
Hi there,
One more thing. The word "enum" implies some type of uniqueness to most developers. This is a trap when talking about OMM Enums.
Consider the following OMM Enum which is the one used by field RDN_EXCHID (Fid 4):.. ... ....
4 "CIN" National Stock Exchange
5 "PSE" NYSE Arca
6 "XPH" NASDAQ OMX PSX when trading in SIAC
7 "THM" NASDAQ InterMarket
8 "MID" Chicago Stock Exchange
9 "NYQ" Consolidated Issue, listed by NYSE
10 "TOR" Toronto Stock Exchange
11 "MON" Montreal Stock Exchange
12 "TSX" TSX Venture Exchange
13 "DEX" Direct Edge Holdings - EDGX (CTA)
14 "AOE" American Options Exchange
.. ... ....
The first column, the integer value, is what travels the wire. The second column is the translation of the enum. It is what you would display to an end-user. The last column is a description. It typically cannot be retrieved from any of the TR APIs.
Here's the trap: Do not assume that the second column is unique. It is not. The only thing which is unique is the integer value. In other words. If you want to display something which is truly unique to the end-user then you'll have no other option than to display to him the integer value (which will mean nothing to him) or (perhaps better) instead display some form of concatenation of the integer value plus the short name.0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛