ERT connectivity issue.
I have successfully get the json with list of services (with endpoints and port number). However, I am having an issue establishing connection. I use https://www.websocket.org/echo.html to test the connection before the implementation. Thanks
Best Answer
-
You can find the ERT in Cloud - Installation and Configuration Guide in WebSocket API document page. It will give you a basic concept of how to implement ERT in Cloud WebSocket application (for any languages).
The basic flow for ERT in Cloud WebSocket application are following:
- Send a HTTP POST request message with username (Machine ID), password and Clent ID (appkey) information to RDP Authentication service to obtain access token, refresh token, expiration time and scope information
- Send a HTTP GET request message with access token to RDP Realtime Service Discovery service to get lists of ERT in Cloud WebSocket streaming server endpoints, ports and location information (VIPs)
- Connect to ERT in Cloud WebSocket endpoint from step (2)
- Once a WebSocket connection is established, sends a JSON Login request message with access token ERT in Cloud WebSocket server
- Once the Login request message is accepted by ERT in Cloud WebSocket server, the application can send item subscription request messages to ERT in Cloud endpoint.
- Re-issue RDP Authentication service before token expiration to keep the session opens.
- Once the application receives a new access token, application must re-send a new JSON Login request message with a new access token and refresh attribute value false in the JSON message to ERT in Cloud WebSocket server.
1
Answers
-
Hi @brook, that website cannot be used for testing, since it is a simple echo test. For using the ERT websocket protocol, the user needs to send in the login message, with the Access token included in the header or key, or else the request will be rejected by the gateway servers.
Please use the Python or Java sample provided in the downloads section - Elektron Real Time in Cloud Examples to get a working sample implementation.
1 -
Hi Gurpreet! Thanks for the response!
We are currently use golang. And, I am able able to send a get request to receive lists of endpoints and ports. What's the endpoint to establish a connection?
I am following the guild below:
https://developers.refinitiv.com/elektron/websocket-api/quick-start
0 -
The service discovery returns a list of available endpoints and the user should choose the one which is geographically closest to them.
For most users in Americas region, this will be one of the servers in the US-EAST location - like
amer-3.pricing.streaming.edp.thomsonreuters.com
1 -
Yes, I am using one of the endpoints. Below a sample endpoint.
wss://amer-3.pricing.streaming.edp.thomsonreuters.com:443/WebSocket
However, it connects and disconnects right away.
0 -
You will have to provide more details on your API/tools/language/framework etc.
Are you using the Python sample, if not can you please try the sample.
If this issue is happening with Python sample as well, then there is some infrastructure issue. Is there a proxy or firewall in the network. Is it configured to allow port 443, secure websocket protocol.
0 -
Hello @brook
You can find Elektron WebSocket API Go examples in the Refinitiv/websocket-api example/go page. Please note that they are example for connecting to a local TREP server. I suggest you check the market_price_authentication.go which shows how to sends a login credential (EDP/RDP access token) with the login message.
The ERT in Cloud WebSocket API examples are in EDP(RDP) example GitHub page. They provides ERT in the Cloud WebSocket examples with C#, Java and Python languages for developers, so you need to apply the ERT in the Cloud logic from those example to your Go application.
1 -
Thanks for the explanation!!!
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 370 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛