Hi,
I am new to this TREP API. In Current system, Socket programming was using in Java language to send tag based request & response. And we need to convert this Socket connection programming logic using TREP API in Java.
Kindly someone advice how should I proceed.
Regards,
Raj
What kind of data you want from TREP?
Basically, the TREP APIs consume the streaming and snapshot data from the TREP infrastructure via the RSSL connection which is a Thomson Reuters proprietary protocol. The API uses the Open Message Model (OMM) which is a collection of message header and data constructs. OMM data constructs can be combined in various ways to model data ranging from simple primitive types to complex data structures. The message between the API and the infrastructure is in the RWF (Reuters Wire Format) which is the encoded representation of OMM. RWF is a highly-optimized, binary format.
The TREP APIs are consist of the EMA Java, RFA Java and ETA/UPA Java APIs. The lowest-level access API is the ETA/UPA Java edition. I suggest you check the following links to learn more about each API:
Please check the different between each API in the API_ConceptsGuide.pdf file at the https://developers.thomsonreuters.com/elektron/elektron-sdk-java/docs?content=8756&type=documentation_item link.
Hi Wasin Waeosri/Team,
Currently our application using Socket programming to send request and get response from Reuters server in normal message format.
And our application running on jdk 1.6.
I visited some docs of EMA Java (https://developers.thomsonreuters.com/elektron/elektron-sdk-java/downloads) and all places showing as it is tested fine in java 7 and 8. Please advise which is the suitable package for our application with java 6.
Thanks & Regards,
Raj
Raj, JDK 1.6 is not supported, neither is raw socket interface to TREP infrastructure. The API handles all underlying socket communication.
What API does your existing application use and what does it connect to? What is a Reuters Server?
Hi Gurpreet,
We are connecting to TOFIP Server using java.net.Socket using specific IP and Port number.
Sample Request to tofIpClient >><FS>332<US>AA<GS>RTNS#INFO<FS>
and we will get response of transaction information in string message from the server.
Please advice which API of TREP we can use.
Thanks & Regards,
Raj
Hi,
It looks like you are connecting directly a Ticket Output Feed which is an old legacy system as far as I am aware.
You should speak to your Market Data team to confirm that the information you require (which look like Dealing Data Info records) is now available on the TREP backbone as a TREP Service. This should be the case - as other clients I have worked with certainly consume #INFO records using the TREP APIs
Once you have confirmed which service your local Market Data team is using to publish the data onto the TREP you should then evaluate EMA Java to consume the data. e.g. work through the tutorial on this page EMA Consumer - Requesting and displaying MarketPrice data
and amend the request as per your requirements e.g.
consumer.registerClient( EmaFactory.createReqMsg() .serviceName("your service name") .name("RTNS#INFO"),
Hi Umer Nalla,
Thanks for reply. You are correct. As per Wong, Roy Kl [ICG-IT] from Market Data Team, we need use the TREP service.
Could you please provide information or sample how the request and response format will be to/from TREP. So that we can analyze further for the existing code modifications required.
Hi Team,
Kindly clarify below queries.
Highly appreciate your quick response.
Thanks.
Raj
The next time you have new questions, please post them as a new question post, not in the same thread.
The EMA API uses RSSL connection which is a Thomson Reuters proprietary protocol to connect to TREP infrastructure. The RSSL connection is based on the TCP/IP protocol. All data/messages in the RSSL connection are encrypted in binary format which requires the EMA API to decode/encode it.