lseg C++ NIProvider query
Raisd on behalf of client
I am testing according to lseg C++ NIProvider tutorial.
I am testing on internal service “DTS_KL” of internal ric “USDFON=MBBGM”, the codes are like the following.
OmmProvider provider(OmmNiProviderConfig("c:\\temp\\process\\x64\\EMAConfig.xml").username("drdwhw")); UInt64 serviceId = 1000; UInt64 sourceDirectoryHandle = 1; UInt64 ibmHandle = 5; RefreshMsg refresh; UpdateMsg update; FieldList fieldList; Connector::ConnectionStateListener _connectionStateListener; provider.registerClient( ReqMsg() .domainType(MMT_LOGIN) .name("drdwhw"), _connectionStateListener, (void*)0); provider.submit( refresh.clear().domainType(MMT_MARKET_PRICE).serviceName("DTS_KL").name("USDFON=MBBGM").state( OmmState::OpenEnum, OmmState::OkEnum, OmmState::NoneEnum, "UnSolicited Refresh Completed") .payload( fieldList .addReal(22, 4.21, OmmReal::ExponentNeg2Enum) //BID_1 - 23, BID - 22 .addReal(25, 4.22, OmmReal::ExponentNeg2Enum) //ASK_1 - 26, ASK - 25 .complete()).complete(), ibmHandle); provider.submit(update.clear().domainType(MMT_MARKET_PRICE).serviceName("DTS_KL").name("USDFON=MBBGM") .payload(fieldList.clear() .addReal(22, 4.21, OmmReal::ExponentNeg2Enum) //BID_1 - 23, BID - 22 .addReal(25, 4.22, OmmReal::ExponentNeg2Enum) //ASK_1 - 26, ASK - 25 .complete()), ibmHandle); provider.submit( StatusMsg() .state( OmmState::OpenEnum, // Stream state OmmState::OkEnum, // Data state OmmState::NoneEnum, // Data status "All is good"), // Explanatory text ibmHandle);
Our IT has checked that the ADH service is running, and I can get call back saying that refresh is completed after I send refresh message.
This shows that I can connect to ADH service.
Now my problem is after I submit the update message the data is not updated.
Answers
-
Thank you for reaching out to us.
Typically, raising questions on behalf of client is not recommend. You can suggest the clients to post questions by themselves. The forum is public so anyone can access it.
Regarding this issue, you can change the values of BID and ASK in the update messages. For example:
provider.submit(update.clear().domainType(MMT_MARKET_PRICE).serviceName("DTS_KL").name("USDFON=MBBGM")
.payload(fieldList.clear()
.addReal(22, 5.21, OmmReal::ExponentNeg2Enum) //BID_1 - 23, BID - 22
.addReal(25, 5.22, OmmReal::ExponentNeg2Enum) //ASK_1 - 26, ASK - 25
.complete()), ibmHandle);I changed the values of BID and ASK to 5.21, and 5.22 respectively.
Therefore, we will know that the values retrieved by the consumer is from the refresh message or update message.
0 -
thanks
will share this with the client0 -
hi, this issue is raised for us, we have changed to values and it does not seem to be working, we check in workspace, the rate was not updated.
publishing via spreadsheet in the same machine is working.
0 -
Normally Developer Community Forum is for how-to/general questions but your question seems to be more complex and requires investigation e.g. review source code, configurations, try to reproduce the problem etc.
I recommend you raise a query through the premium support service (RDC). If you are a named user of that service you should see a link "Contact Premium Support" when you are logged into the developer portal.
If you couldn't see the "Contact Premium Support" button, please contact your LSEG account team or sales team directly and ask for the RDC subscription.
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
- 248 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
- 642 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
- 89 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛