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.komac
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.komac
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 -
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
1
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 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
- 370 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 中文论坛