How to post data for multiple symbols?

Hello,
https://github.com/Refinitiv/websocket-api/blob/master/Applications/Examples/java/MarketPricePosting.java
We have made use of the above example to update data for symbols in WebSocket API. Please note that the above example does not explain/demonstrate the steps to update data for multiple symbols and we have been told that only 1 symbol can be updated using a single post message.
We have a requirement to update data for many symbols and we have tailored the above example to run in a loop to send data for multiple symbols one after another. Also we have made the system to wait 0.4 seconds to acquire the acknowledgement receipt for each symbol that has been updated in WebSocket API.
Because of this approach, it takes around 11 minutes to update data for 700+ symbols.
We would like to know if there is any other approach to do it effectivety such as updating data for multiple symbols in a single post message and acknowledgement receipt for each symbol should also be received.
Thanks.
Best Answer
-
Thank you for reaching out to us.
Each post message supports only one RIC.
However, you can send an array of post messages via a websocket connection. For example:
[
{
"Ack": true,
"ID": 1,
"Key": {
"Name": "TEST01",
"Service": "DIST_CACHE"
},
"Message": {
"Fields": {
"ASK": 452.60,
"PRIMACT_1": 451.3,
"SEC_ACT_1": 451.3,
"BID": 452.55
},
"ID": 0,
"Type": "Update"
},
"PostID": 10,
"Type": "Post"
},
{
"Ack": true,
"ID": 1,
"Key": {
"Name": "TEST02",
"Service": "DIST_CACHE"
},
"Message": {
"Fields": {
"ASK": 452.60,
"PRIMACT_1": 451.3,
"SEC_ACT_1": 451.3,
"BID": 452.55
},
"ID": 0,
"Type": "Update"
},
"PostID": 12,
"Type": "Post"
}
]1
Answers
-
Hello @Jirapongse,
Much thanks for the response. It did help to post data for multiple symbols. Initially i tried to post data for 50 symbols using arrays of post messages and it is working fine.
However, I would like to know if we have any limitation on sending array of post messages. Will the WebSocket be able to handle if i send array of post messages containing 700+ symbols ?
Also, is there a way to get the exact time at which the symbol is updated in Websocket using acknowledge messages ?
Thanks.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 167 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 705 Datastream
- 1.5K DSS
- 633 Eikon COM
- 5.2K Eikon Data APIs
- 14 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 6 Trading API
- 3K Elektron
- 1.5K EMA
- 259 ETA
- 569 WebSocket API
- 40 FX Venues
- 16 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 4 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 284 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 24 RDMS
- 2.2K Refinitiv Data Platform
- 880 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 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
- 123 Open DACS
- 1.1K RFA
- 108 UPA
- 196 TREP Infrastructure
- 232 TRKD
- 919 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 103 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛