RtContribute => WebSocket API mapping
Hi,
We are migrating our IDN pages contribution from Excel RtContribute() to your WebSocket API.
Our excel formulas look like:
=RtContribute("TRC", "PAGENAME", 317, 123.456789, "SCOPE:SERVER POS:7 FORMAT:6:4")
This will contribute the value '123.456789' to the page 'PAGENAME' at the row 3 (FID: 317 = ROW80_3) and at the position '7' with format '6:4'.
We want to translate this formula to a WebSocket API message. It would roughly look like this:
{
"Ack": true,
"ID": 1,
"Key": {
"Name": "PAGENAME",
"Service": "DDS_TRCE"
},
"Message": {
"Fields": {
"ROW80_3": 123.456789,
},
"ID": 0,
"Type": "Update"
},
"PostID": 1,
"Type": "Post"
}
However we have 2 questions:
- How to translate 'POS:7' into the above message?
- Is there a way to translate 'FORMAT:6:4' or shall we simply make sure the value in the message has the format we want?
Thank you
Best Answer
-
Many thanks for the pointer.
It seems partial page updates are supported via websocket API using RMTES encoding https://developers.refinitiv.com/en/article-catalog/article/encoding-and-decoding-non-ascii-text-using-ema-and-rfa-cnet
The syntax of an intra-field positioning sequence is as follows:
<CSI>n<HPA>YourText
Where
- <CSI> is the Control Sequence Introducer (Hex 1B 5B which is as an ASCII "[")
- n is an ASCII numeric string representing the cursor offset position relative to the start of the field.
- <HPA> is the Horizontal Position Adjust character which terminates the intra-field position sequence (Hex 60 which is an ASCII " ` ")
I will give it a try.
2
Answers
-
Hello @nittandev
Thank you for contacting us. To contribute the PAGE data with the WebSocket, the application needs to send the message in the string format that you need.
I hope this helps.
0 -
Hello @nittandev
I admit that I am not an expert in the PAGE based ric. However, I suggest you try my colleague's answer in this old post.
You may apply for the RDC and contact to the dedicated Real-Time APIs support team to help you with this question. You can submit a support ticket to the Real-Time APIs support team by clicking the "Contact premium support" on the Websocket API page.
Please contact RDC Administrator "><rdc.administrator@lseg.com> if you want to apply for RDC.
0 -
Confirmed working fine. The below json will contribute abc at row 6 column 5 of page MYPAGE
{
"Ack": true,
"Key": {
"Name": "MYPAGE",
"Service": "DDS_TRCE"
},
"Type": "Post",
"Message": {
"Type": "Update",
"ID": 1,
"Fields": {
"ROW80_6": "\u001B[5\u0060abc"
}
},
"PostID": 1,
"ID": 1,
"Domain": "MarketPrice"
}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
- 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛