Seq Number reset in Websocket API for Price Streaming

We consulted the documentation provided on your site regarding the functionality and setup. However there is a bit of additional clarification required: All the messages received via Websocket have a Sequence number. The definition in the documentation is relatively vague: Sequence number intended to help with temporal ordering. Typically, this will be incremented with every message, but may have gaps depending on the sequencing algorithm being used. As a general approach for this protocol such a message is used so that the receiver may decide whether a received message is relevant in a given context. These messages are not guaranteed to be received in the actual sending order, therefore this Sequence number would have the role of ordering the messages in that scope. The problem that we encountered is that this Seq Number seems to be resetting to 0(zero) at any point in the day as it reaches 65535, behavior that makes the assumed functionality unusable.
How can we have a clean behavior in regard to Seq Number?
thank you
Best Answer
-
Hello @doris.wagner01 ,
In RDM Guide definition:
"SeqNum Optional. A user-specified, item-level sequence number which can be used by the application for sequencing messages within this stream"
You are absolutely correct, in how SeqNum from Refinitiv Realtime service is implemented- up to 65k and back to 0, the ordering/sequencing is intended to be short-term and SeqNum is not guaranteed to be present in every message, is up to the service/the publisher; on an item originating with a custom publisher the behavior may potentially differ.
SeqNum is not associated with this specific item subscription from the connection and the consumer, but rather with the published item, and all subscribers to the item from the same source will be receiving the same sequence number, as another very important use case, in my view, is in a custom redundancy solution.
Hope this information helps
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 中文论坛