Looking for Elektron WebSocket API MRN Example with C++

Hi,
I would like to find more or less the same (if possible 100% equal):
https://github.com/Refinitiv-API-Samples/Example.WebSocketAPI.Python.MRN/tree/ERT-in-Cloud
but in C++ so I don't need to translate it line by line and start this application from scratch.
Is it possible to have a WebSocket API MRN Example in C++
(NOT RDP, because RDP doesn't work well :-( ), no TREP I don't have TREP, just WebSocket API MRN consumer in C++ as simple as possible
?
Thanks in advance
PS. It is impossible to find C# example, we have already cleared that up here:
So now let's hope to have a C++ example at least.
Best Answer
-
Hi @Oleksandr Kocherha - aka Sasha
We don't have any C++ Websocket examples as most of our C++ client developers use the RTSDK - specifically the Enterprise Message API - rather than Websocket API.
EMA Consumer - Request & Decode Machine Readable News
Although the above MRN tutorial connects to an ADS, we do have general EMA examples that can connect to RRTO as demonstrated in the QuickStart - Connect to RRTO
Once you work through the RRTO Quickstart and understand how the code for example 113 works, you can merge the 113 Initialisation + session code with the MRN Tutorial code - to achieve your required example.
0
Answers
-
Hi @Oleksandr Kocherha - aka Sasha,
I noticed you asked a similar question on this thread.
You state you don't have a locally deployed instance (TREP) you can connect into and you state "RDP doesn't work well". Unfortunately, that doesn't leave you with much left. The language isn't the concern but your requirements of where you want to connect to.
The question is, what do you have access to?
If you have a license to stream data, then you may have access to the OMM-based streaming services. With that, you can utilize the RealTime SDK - C/C++.
I think we need to first establish:
- What you have access to? What are you licensed to use?
- Explain what you mean "RDP doesn't work well"?
thanks.
0 -
1. I have tried this example in Python https://github.com/Refinitiv-API-Samples/Example.WebSocketAPI.Python.MRN/tree/ERT-in-Cloud and it works I discovered the hostname: emea-3-t1.streaming-pricing-api.refinitiv.com
I have access to Refinitiv Real-Time optimized. I need to read only
MRN_STORY and MRN_TRNA. nothing else.
2. I downloaded and tried some example from a), b)
a)https://github.com/Refinitiv-API-Samples/Example.RDPLibrary.DotNet.MRNStoryConsumer
https://github.com/Refinitiv-API-Samples/Example.RDPLibrary.DotNet/blob/master/src/2.%20Content/2.3-News/2.3.06-News-MRN/2.3.06-News-MRN.csb) https://github.com/Refinitiv-API-Samples/Example.RDPLibrary.DotNet
and I cannot make it work, it is not stable. Sometimes I can download something but it generates an exception pretty quickly. I have tried to run both from a computer connected directly to internet and behind a proxy.
Examples of errors:
I always use the same credentials for C# RDP and Python and
only this Python example works for me:
https://github.com/Refinitiv-API-Samples/Example.WebSocketAPI.Python.MRN/tree/ERT-in-Cloud
So I'm looking for the same in C# or in C++
0 -
Another error message I have:
0 -
One more error message I have:
0 -
So as you can see, C#/RDP doesn't work well
0 -
Hi @Oleksandr Kocherha - aka Sasha
Access Denied means that you are not licenced for MRN data - please discuss with your Refinitiv Account team to gain access to MRN data.
0 -
Hi @Oleksandr Kocherha - aka Sasha
Please confirm which port you are trying to connect to for the Websocket - it should be port 15000 (and 443 for the Authentication server)
0 -
So I'm looking to this
https://github.com/Refinitiv-API-Samples/Example.WebSocketAPI.Python.MRN/tree/ERT-in-Cloud
but in C# or if not possible in C++.
I'd like the same simple approach as in Python but in C# (or in C++ if not available in C#)
0 -
@Oleksandr Kocherha - aka Sasha,
There is no C# or C++ equivalent to the above Python example.
Did you try using this example: https://github.com/Refinitiv-API-Samples/Example.RDPLibrary.DotNet/tree/master/src/2.%20Content/2.3-News/2.3.06-News-MRN
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 652 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛