WebSocket API - Do we have any limitation on the requested items when requesting a single Batch R...

...equest?
Hi Team,
I am going to send one single batch request for multiple items and I can have ~10000+ items in the single batch request.
Do we see any issue with such a huge request on a single batch call in the WebSocket API?
Let me know if you need more here
Thanks
Pradeep B
Best Answer
-
If you want to request more RICs than will fit in the MaxMsgSize, you will need to split the list of RICs into multiple Batch Requests - where each Batch Request message is smaller than MaxMsgSize.
The other thing to note is that you will need to test thoroughly to ensure your application and network connection can cope with a large list of RICs in a timely manner - especially during peak volatility periods such a market open and other key events where the number of updates a second could increase considerably compared to ordinary/average market conditions.
If your application does not process the updates quickly enough, the server you are connecting to may disconnect you as it can only buffer a limited amount of updates for the RICs you have subscribed to. This scenario is often referred to as a 'slow consumer'.
0
Answers
-
There is a limitation set within the service based on the size of the request message. When you login to the WebSocket server, the login response will carry a field called: MaxMsgSize defined within the "Elements" structure of the response. So long as the total size (in bytes) of the complete batch request is within this limit, you're good.
Within the WebSocket Developer Guide:
"MaxMsgSize is the maximum supported message size as configured by the Refinitiv Real-Time Advanced Distribution Server. Any message greater in size is rejected and results in a disconnection."
0 -
Could you please suggest me how to handle the case when the message size is greater than MaxMsgSize.
We have couple of clients where they have defined more then 10000 RIC code defined and i am pretty much sure that message size will be more then the size defined in MaxMsgSize .
Note: In my current testing the the MaxMsgSize is set to 61426.
Thanks
Pradeep B
0 -
Hi @umer.nalla
Do you have any sample code for creating multiple batch request in a single log-in?
If yes, Could you please pass me some sample code for it.
Thanks
Pradeep B
0 -
Sorry, I am not aware of any such example. It is something you will need to implement in whichever language you are developing.
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
- 684 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
- 249 ETA
- 554 WebSocket API
- 37 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
- 643 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 192 TREP Infrastructure
- 228 TRKD
- 915 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 中文论坛