question

Upvotes
Accepted
3 0 3 8

How can i get possible value of fields from TREP/TRKD [XMIC_CODE, MIC_CODE, RDN_EXCHD2]

How can i get possible value of fields from TREP/TRKD XMIC_CODE, MIC_CODE, RDN_EXCHD2

Thanks,

Somjade.K

elektronrefinitiv-realtimetreprkd-api
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.

@somjade.keswongrot

Thank you for your participation in the forum. Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply that best answers your question. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

-AHS

@somjade.keswongrot

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

-AHS

Upvotes
Accepted
9.6k 10 7 7

Hello @somjade.keswongrot

RDN_EXCHD2(field id 1709) is enumerated type. The values of this type are standard numeric values that can be expanded to specific strings. You can find all possible values of this type in enumeration dictionary which EMA consumer examples, example332__Dictionary__Streaming (Java) and 332__Dictionary__Streaming (C++) can consume. Hence, you can run the examples to retrieve the possible values of RDN_EXCHD2 from TREP.

The example output of example332__Dictionary__Streaming:

(Referenced by Fid 1709) 
.. 
value=0 display="   " meaning="null" 
value=1 display="ASE" meaning="null" 
value=2 display="NYS" meaning="null" 
value=3 display="BOS" meaning="null" 
value=4 display="CIN" meaning="null" 
value=5 display="PSE" meaning="null" 
...

The example applications are shipped with Elektron SDK - Java package and Elektron SDK - C/C++ package respectively.

XMIC_CODE and MIC_CODE types are string so the possible values of each RIC may be difference depending on the venue which generates them; there is no dictionary defining all values like enumerated type. I would suggest you reach out to the Refinitiv Helpdesk as they have data specialists who can provide you the possible values of both fields for RICs you are interested in.

The types of all fields are defined in RDMFieldDictionary which can be consumed by example332__Dictionary__Streaming and 332__Dictionary__Streaming as well.

Hope this help.

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.

Upvotes
25.3k 87 12 25

Hi @somjade.keswongrot

You can use one of our realtime APIs such as RFA or Elektron to consume a RIC code that contains those fields and then parse the payload to extract those fields if present.

If you can use Java or C++ then I recommend the Elektron SDK - of which the Elektron Message API is the easiest to learn and use. You can find tutorials on consuming data under the tutorials sections.

e.g. EMA Java Tutorials or EMA C++ Tutorials

If you need to use a different language, please advise which one and we can suggest an alternative API.

Obviously, not all RICs may contain all those particular fields - the Elektron feed carries millions of RICs and the payload is usually determined by what the originating venue provides us in terms of data. The majority do carry RDN_EXCHD2 and a few I tried did have XMIC_CODE or MIC_CODE too.

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.

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.