question

Upvotes
Accepted
3 0 0 3

Refinitiv Real-Time -- Optimized

I am trying to access the market data using Eikon data API c++ ( Refinitiv Real-Time -- Optimized). ---> Is this the correct API for C++?


If yes, I am using the cons113 example to test connectivity into RTO , To set up the configuration I have my userID, password, client ID, However I am not sure what the consumer name should be here?



I get this exception when I execute the cons113 build.

ema-apic++
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
Accepted
15.1k 28 8 12

Hello @skumar

The attached image is broken. Can you re-upload the image?

About how to run the Cons113 example, you can check the step-by-step guides from the Cons113 (RTO test) section of the RTSDK C++ Quick Start page.

According to the Cons113 example code (Consumer.cpp file), it uses the following Consumer configuration from the EmaConfig.xml file:

  • Consumer_4: Connect to the RTO via Refinitiv proprietary RSSL (TCP) connection)
  • Consumer_5: Connect to the RTO via the WebSocket connection

You do not need to set a Consumer Name or IP/Port manually.

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
3 0 0 3

1655106865837.png

Hi@ wasin.w, sorry , re-uploaded the image,

why I get this error when I execute Cons113?


1655106865837.png (17.4 KiB)
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.

Upvote
15.1k 28 8 12

Hello @skumar

It seems you are running the application from the Visual Studio. Please try the following steps to add the EmaConfig.xml file to your Cons113 project.

Firstly, copy the EmaConfig.xml file from the <RTSDK-2.0.5.L1.win.rrg>\Cpp-C\Ema folder to your Cons113 folder.

add-ema-configxml-1.png

Next, add the EmaConfig.xml file to the Cons113 project by right-clicking on the Cons113 --> Add --> exiting item... --> choose the EmaConfig.xml file

add-ema-configxml-2.png

Then, build and run the Cons113 example application.


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.

Thankyou @wasin.w , the execution proceed, however I get this error now.


1655108213814.png

1655108213814.png (54.9 KiB)
Upvotes
15.1k 28 8 12

Hello @skumar

Please be informed that the RTSDK C++ needs the Libcurl, zlib, lz, and OpenSSL libraries for the RTO connection.

The Libcurl, zlib and lz libraries are available at <RTSDK C++ folder>\installdb\WIN_64_VSxxx\bin folder. You can copy all files to the <RTSDK C++ folder>\Cpp-C\Ema\Executables\WIN_64_VSxxx\Debug_MDd folder.

You can download the OpenSSL version 1.1.1 from the Win32 OpenSSL page. Once the library is installed, copy the libssl-1_1-x64.dll file to the <RTSDK C++ folder>\Cpp-C\Ema\Executables\WIN_64_VSxxx\Debug_MDd folder.

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.