Questions regarding message types add/delete/update

msgs.zipPlease can you assist with the following questions regarding message types add/delete/update. A sample of the script and output are enclosed for your reference.
Our goal is to track bids/asks in according maps see: "def process_message(message_json):". We encounter a lot of situations with double DELETES etc. The full data from one of our runs is enclosed, as well as grepped messages for only the "MTQ6NDA1MS8x" key, to illustrate.
You can run the script yourself if needed.
Service: Refinitiv Real-Time Optimised
Exchange: CME
Instrument: ESH3 (EMINI S&P MAR3)
Question 1:
We get DELETES and UPDATES for levels that we did not receive before, and sometimes ADDS for levels that already existed. The most frequent occurrence is to receive a DELETE message before an ADD.
Can you please advise how we should interpret and handle the following scenarios:
1. We receive DELETE before ADD
2. We receive UPDATES for price levels of which we did not receive an ADD; and ADD messages for price levels that already existed
3. We receive and ADD and DELETE in one message. It is unclear which happened first (no sequence number of timestamp provided)
Question 2:
We are not receiving a “Complete” message flag while documentation suggests we should.
In this article: https://developers.refinitiv.com/en/article-catalog/article/consuming-order-book-level-2-data-with-elektron-websocket-api it says that at first we get a L2 orderbook snapshot and then a "Complete" flag in message points it's end. We have never seen this "Complete" flag in any message.
Question 3:
We have a 12:399575/1 string after decoding "Key" from base64. What does it mean? 399575 obviously a price in integer, 1/2 BID/ASK but what is “12”? Also consuming-order-book-level-2-data tutorial says encoded format is like 128.56A. Quote: "Convert the Key into string format e.g. '128.56A'"
Examples (further details in the msgs.zip with json file inside):
ADD/DELETE/DELETE
MTI6Mzk5NTc1LzE= base64: 12:399575/1
ADD/DEL/DEL+ADD in one
MTI6Mzk5ODI1LzI= base64: 12:399825/2
DEL/ADD
MTQ6Mzk5My8x base64: 14:3993/1
DEL+ADD in one
MTQ6Mzk5OC8y base64: 14:3998/2
DEL+ADD in one
MTM6Mzk5NTUvMQ== base64: 13:39955/1
Best Answer
-
Thanks for reaching out to us.
You can check the meanings of the Map actions in the following table.
Regaring the complete flag, it states in the article that "The final Refresh does not have this attribute as the default value for Complete is true.".
This forum is aimed at answering "how to" types of questions about using Refinitiv APIs and the moderators are not Content/Data specialists. For content questions, please contact the content support team directly via MyRefinitiv.
The content team will either have the required content expertise ready available or can reach out to relevant content experts to get the answer for you.
0
Answers
-
Hi Saifullah Hassan,
the client is still not fully clear and has said the below:
The good news is that the support team reposted our questions on the Q&A forum and we received some replies on our questions. Some items are still unanswered or not conclusive. Can you please escalate these unclear and unresolved items to a content expert? There is currently no clear conclusion on how to interpret this content, or whether there might be an error.
Unclear
Question 1.1:
We receive DELETE before ADD
Question 1.3:
We receive and ADD and DELETE in one message. It is unclear which happened first (no sequence number of timestamp provided)
Unresolved
Question 3:
We have a 12:399575/1 string after decoding "Key" from base64. What does it mean? 399575 obviously a price in integer, 1/2 BID/ASK but what is “12”? Also consuming-order-book-level-2-data tutorial says encoded format is like 128.56A. Quote: "Convert the Key into string format e.g. '128.56A'"
Johan
0 -
Hi Saifullah Hassan,
The client is still not fully clear and has said the below, Please can you look through and help answer the question:
The good news is that the support team reposted our questions on the Q&A forum and we received some replies on our questions. Some items are still unanswered or not conclusive. Can you please escalate these unclear and unresolved items to a content expert? There is currently no clear conclusion on how to interpret this content, or whether there might be an error.
Unclear
Question 1.1:
We receive DELETE before ADD
Question 1.3:
We receive and ADD and DELETE in one message. It is unclear which happened first (no sequence number of timestamp provided)
Unresolved
Question 3:
We have a 12:399575/1 string after decoding "Key" from base64. What does it mean? 399575 obviously a price in integer, 1/2 BID/ASK but what is “12”? Also consuming-order-book-level-2-data tutorial says encoded format is like 128.56A. Quote: "Convert the Key into string format e.g. '128.56A'"
Johan
0 -
This forum is dedicated to technical queries on Refinitiv product APIs. From the question, you can use the WebSocket API to retrieve the AP and I have provided answers regarding API perspectives.
For questions regarding unclear actions and how to interpret the data sent by the data feed, please contact the data feed or content support team directly via MyRefinitiv.
Sorry for this inconvenience.
0
Categories
- All Categories
- 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
- 613 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
- 248 ETA
- 552 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
- 630 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
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 86 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛