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

Best Answer

Answers

  • 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.

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

    You can download tutorial source code from downloads tab.

  • 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

  • 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.