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 -
@Gurpreet. Can you please kindly have a look at the attached rmds.zip (rmds.cnf) So we will change parameters if it is required for client needs
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 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
- 367 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
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛