For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 2

How can I connect to an RMDS server using the new Elektron API

elektronrefinitiv-realtimeelektron-sdktrepc++
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.

1 Answer

Upvotes
Accepted
49.6k 124 44 62

For subscription, you need to create an instance of OmmConsumer class.

The OmmConsumer class is the main consumer application interface to the EMA. This class encapsulates watchlist functionality and transport level connectivity. It provides all the interfaces a consumer-type application needs to open, close, and modify items, as well as submit messages to the connected server.

You can specify the TREP/RMDS host name, TCP port, and user name while creating OmmConsumer.

  OmmConsumer consumer( 
    OmmConsumerConfig()
      .host( "ADS:14002" )
      .username( "user1" ) 
  );

Otherwise, you can use EMA Consumer and Channel configurations in the EmaConfig.xml.

For more information, please refer to:

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.