Python WebSocket Code on RTO - Would it work on RTMDS over WebSocket
We have a client that is currently using Python API to connect to RTO on AWS and generating json files as output for real-time data. They are now evaluating to move the workflow from AWS to on prem RTMDS setup where they have access to 2 ADS servers over private comms. The RTMDS setup is WebSocket enabled.
Client wants clarification on the following:
- Whether the same python code can be used to subscribe to real-time data via ADS over WebSocket. Client would like to lift and shift the workload to on prem setup with minimal changes and no additional development.
- If they connect via WebSocket to ADS would they get full tick or still be limited to conflated (3 updates per second) data.
- Do we recommend client moving to EMA to connect to ADS or they can continue using WebSocket.
- If existing code cannot be used, would new development be needed to connect to ADS over WebSocket. Where can they start for this.
Best Answer
-
Hello @MayurC
Thank you for contacting us. The client is using the WebSocket API connects to RTO, and the client have a plan to migrate to RTMDS, am I correct?
Please see my answers below:
Question 1: Whether the same python code can be used to subscribe to real-time data via ADS over WebSocket. Client would like to lift and shift the workload to on prem setup with minimal changes and no additional development.
Question 2: If existing code cannot be used, would new development be needed to connect to ADS over WebSocket. Where can they start for this.
Answer:
These questions can be answered together.
The current code that connects with RTO cannot be used to connect to RTDS/RTMDS "as is".
- The code needs a modification on the connection logic
- the subscription and other logics (such as ping-pong or business logic) are the same.
In short, the RTDS/RTMDS connection does not require the HTTP authentication with RDP anymore, an application just sends the DACS username with the WebSocket JSON login request message. An application also does not need to manage the Authentication Token too.
The client can find the step-by-step tutorial of the RTDS/RTMDS connection from the following resources:
- WebSocket Tutorial: Connect to the Real-Time Distribution System
- Examples on GitHub: https://github.com/Refinitiv/websocket-api/tree/master/Applications/Examples (Please check the example folders outside the RDP folder)
0
Answers
-
Cont.
Question 3: If they connect via WebSocket to ADS, would they get full tick or still be limited to conflated (3 updates per second) data
Answer:
The RTDS can provide full tick data for consumers. However, it is also based on the feed and service that the client is subscribe to. I strongly suggest you contact the RTMDS team to confirm this information.
Question 4: Do we recommend client moving to EMA to connect to ADS or they can continue using WebSocket
Answer:
It is depending on the client's requirements.
The EMA API manages connection, subscription, and session for an application. It supports the API logging, configuration file, and much more. However, an application needs to install the EMA and its dependencies on the consumer application machine. The API also supports only C++, C#, and Java languages.
The EMA API supports the WebSocket connection and the RSSL connection to ADS. The RSSL is Refinitiv proprietary TCP-based connection that encode/decode data in binary format.
- The RSSL connection is designed for high-performance data distribution because the message size is smaller than the JSON WebSocket API
- The WebSocket connection is designed for easy to parse message
The pure WebSocket API supports various programming languages.
Like I said above, it is based on the client's requirements. The client can find more detail on this Choosing a Real-time Streaming API article.
0 -
Appreciate the response @wasin.w.
You mentioned 'The RTDS can provide full tick data for consumers.' Is this applicable over WebSocket as well. I see that WebSocket port/feed on RTDS, by default is Conflated, 300ms, trade safe data (screenshot below). Is there a way to confirm if WebSocket will be able to deliver Full Tick data or client will have to move to EMA and connect via ERT.
0 -
Hello @MayurC
It is depending on the RTMDS, so I strongly suggest you contact the RTMDS support team.
You can contact the team via https://myaccount.lseg.com/en/productsupport website.
0
Categories
- All Categories
- 6 AHS
- 37 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
- 367 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
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛