Item values are not updated after NI Provider restart
We currently develop the NI Provider application that publishes quotes with the MMT_MARKET_PRICE domain.
The problem is after the provider restarts and sends refresh messages, the consumer is not able to update item values. We tried to keep the same handle value for the item between restarts and change it - doesn't help.
We cannot change the consumer logic. In OMMViewer we also observe items disappear after provider restarts and we have to open a new subscription. So the question is if there's something wrong with our provider logic? Can we change it somehow to get rid of consumer restart? Is it necessary to have the same handle value in refresh messages for the same item in different provider sessions?
Below is the source code of the provider (in kotlin):
val refreshMsg = EmaFactory.createRefreshMsg()
refreshMsg.serviceName(serviceName).name("FIAT_" + trepQuoteDTO.isin)
refreshMsg.domainType(MMT_MARKET_PRICE)
refreshMsg.state(
OmmState.StreamState.OPEN,
OmmState.DataState.OK,
OmmState.StatusCode.NONE,
"UnSolicited Refresh Completed")
val fieldList = EmaFactory.createFieldList()
fieldList.add(EmaFactory.createFieldEntry().ascii(831, serviceName))
fieldList.add(EmaFactory.createFieldEntry().real(BID, trepQuoteDTO.bid, OmmReal.MagnitudeType.EXPONENT_NEG_2))
fieldList.add(EmaFactory.createFieldEntry().real(BID_SIZE, trepQuoteDTO.bidSize, OmmReal.MagnitudeType.EXPONENT_0))
fieldList.add(EmaFactory.createFieldEntry().real(ASK, trepQuoteDTO.ask, OmmReal.MagnitudeType.EXPONENT_NEG_2))
fieldList.add(EmaFactory.createFieldEntry().real(ASK_SIZE, trepQuoteDTO.askSize, OmmReal.MagnitudeType.EXPONENT_0))
refreshMsg.payload(fieldList).complete(true)
val handleId: Long = itemHandlers.getOrPut(trepQuoteDTO.isin, { counter.getAndIncrement() })
provider.submit(refreshMsg, handleId)
Best Answer
-
Hi @askochin, You can publish the item on the same handle in between the restarts.
I tried the Java EMA sample example100__MarketPrice__Streaming and connected the OMMConsumer, and the application was able to receive refresh and update messages after multiple NIP restarts.
Can you please try the Java sample instead of Kotlin? Also, in you code, you seem to be sending refreshes only.
0
Answers
-
@Gurpreet, thanks! We send updates after refreshes only so they work ok.
Looked at the config in examples, it's quite the same as ours.
The problem was our NIP started sending refreshes after restart with the delay.
If this delay is less than 10-15 sec, OMMViewer recovers the item value and updates DataState from SUSPECT to OK.
Otherwise, if this timeout expires, it considers the item to be "Not In Cache".
And all this doesn't depend on whether handle is the same or not after restart.Does anybody know if there's a config param setting this delay?
Is the handle value supposed to be used in update messages only?0 -
So, to be sure, you are using a non interactive provider, and publishing into the ADH cache, and subscribing to that data from ADS, right?
There are numerous parameters within TREP configuration which control the service behavior, when the provider goes down. Its advisable to work with your market data administrator to get it properly setup.
0 -
Yes, we use a non interactive provider, and publish into the ADH cache, and subscribe from ADS
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 中文论坛