question

Upvotes
Accepted
1 1 2 3

Socket programming to TREP

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

elektronrefinitiv-realtimetrep
icon clock
10 |1500

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

Upvote
Accepted
11.5k 16 7 10

Hi @rajkumar.boga

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.refinitiv.com/en/api-catalog/refinitiv-real-time-opnsrc/rt-sdk-java/documentation#api-concepts-guide link.

icon clock
10 |1500

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

Upvotes
1 1 2 3

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.refinitiv.com/en/api-catalog/refinitiv-real-time-opnsrc/rt-sdk-java/download) 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

icon clock
10 |1500

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

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

Upvote
20.3k 73 10 20

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"), 
icon clock
10 |1500

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

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.

Upvotes
13k 32 12 18

Raj, Please follow the quick start for EMA Java at: EMA Quick Start

You can download tutorial source code from downloads tab.

icon clock
10 |1500

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

Upvotes
1 1 2 3

Hi Team,

Kindly clarify below queries.

  • 1.What is channel / protocol it uses when we connect to TREP using EMA API?
  • 2.Is it secured protocol by default or do we need to install any ssl certificates at our side?
  • 3.Is there any SSL Mutual authentication between our application - TREP server

Highly appreciate your quick response.

Thanks.

Raj

icon clock
10 |1500

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

Hi @rajkumar.boga

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.

Click below to post an Idea Post Idea