Websocket API returns the same instrument twice in a single JSON response

- All the updates we see come down with the
"Unspecified" Update type. Is this to do with the trial free
data? - There are situations where two or more updates are
part of the same json message. See below for an example in GBP=. The first line
represents 99% of the updates, a single record. However in a smaller number of
cases more updates for the same instrument are transported by a single json
message. How should we interpret the situation when two or more updates for the
same RIC are collapsed in the same json object? Does one precede the
other?
2019-05-07 13:17:08.550 DEBUG
[ { "ID": 6, "Type": "Update", "UpdateType":
"Unspecified", "DoNotConflate": true, "Key": { "Service":
"ELEKTRON_DD", "Name": "GBP=" }, "SeqNumber": 39086, "Fields": { "BID": 1.3046, "ASK": 1.305 } }]
2019-05-07 13:17:09.242 DEBUG
[ { "ID": 6, "Type": "Update", "UpdateType":
"Unspecified", "DoNotConflate": true, "Key": { "Service":
"ELEKTRON_DD", "Name": "GBP=" }, "SeqNumber": 39150, "Fields": { "BID": 1.3047, "ASK": 1.3048 } }, { "ID": 6, "Type": "Update", "UpdateType":
"Unspecified", "DoNotConflate": true, "Key": { "Service":
"ELEKTRON_DD", "Name": "GBP=" }, "SeqNumber": 39214, "Fields": { "BID": 1.3047, "ASK": 1.3048 } } }
Best Answer
-
Hi @erol.komac1
You would treat it the same as you would when you receive two update messages in separate payloads. Process the first and then process the 2nd e.g. in your example above, you have Seqnum 39150 followed by Seqnum 39214
If you decide to discard the 1st message, how can you be sure that the 2nd contains the same fields with the updated values? You have start comparing fields in the 1st message with fields in the 2nd message - to ensure they both contain the same fields...
0
Answers
-
Hi @erol.komac1
If you refer to the ADS Install guide you will note there is a wsMsgPacking parameter which defaults to True.
In summary the parameter determines if multiple message can be packed into a single message - determined by the flushInterval parameter (and maximum message size). This allows the ADS to improve bandwidth and performance - but can be disabled if lower latency is required.
0 -
Hi @umer.nalla,
This one is related to ERT in Cloud (AWS) so i can't make changes on ADS level. A customer trialing the feed came with this query.
How should we interpret the situation when two or more updates for the same RIC are collapsed in the same json object? Does one precede the other?
Ideally we get a single message as in this particular case the same instrument is populated twice in the same message and the as same fields are populated, basically the first one is outdated?
0 -
Yes, makes sense for other asset classes not for fx as bid/ask are always changing at the same time. Thank you for the clarification!!
0 -
I am not a content expert so cannot comment on the behaviour of FX instruments compared to other asset classes.
0 -
Hi,
Can someone please answer the first question here? Facing the same issue about UpdateType being Unspecified a lot in the response.
0 -
Hi @bansalshah
Please see this reply which covers the same type of question
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 中文论坛