Elektron Contribution - Posting chain data and XML
I have been trying out the Contributions Tutorial examples and have managed to post values for my Test RIC.
I do have a couple questions though:
- One of the available Add functions (addXml) is using XML – do you have any examples of XMLs that I can try please?
- If I have RICs (from a chain RIC), e.g.
RIC
Name
Value
TESTRICMK0
TESTRIC MAY20
100.65
TESTRICMN0
TESTRIC JUL20
10.23
TESTRICMU0
TESTRIC SEP20
102.34
What is the best way for me to send those values through? Should I use an XML structure and AddXML function or one by one using AddFloat function or some other method?
Many thanks
Best Answer
-
Each RIC will need to be updating in a single PostMsg - as you need to set each PostMsgs attribute individually e.g. RIC code, streamId etc.
0
Answers
-
Hi @emir.subasic, Can you please elaborate which Contribution tutorial you are referring to? Are you using the TR Contribution Channel?
0 -
Hi,
Yes, using the TR Contribution Channel.
At the moment I am doing something like:
_pOmmConsumer->submit(PostMsg()
.streamId(_postStreamID)
.postId(_postID).domainType(MMT_MARKET_PRICE)
.solicitAck(true).complete()
.payload(UpdateMsg().streamId(_postStreamID)
.name(RIC)
.payload(FieldList()
.addFloat(fieldId, value)
.complete()))
.complete(),
_subStreamHandle);
0 -
You can see the SDK documentation on how to use the XML add feature:
OmmXml xml;
XML can be added to FID's, which can carry that data. In your sample, you will have to use add float methods only.
xml.set( "<xml tag>this is xml data</xml tag>" );
fList.addXml( 123, xml ).complete();
0 -
Hi,
I have tried to find it and checked EMACPP_DevGuide.pdf document. Unfortunately, I don't see any XML examples in it. Can you point me to the right document please?
Does the XML need to conform to a predefined schema?
In my initial example, I have the following 3 RICs with 3 price values (PRIMACT_1 field) and 3 CRT_MNTH field values.
Can you please advise what is the best way for me to send all these values through and if possible a code illustration?
TESTRICMK0 MAY20 100.65
TESTRICMN0 JUL20 104.23
TESTRICMU0 SEP20 102.34
Thanks
0 -
I could be wrong but I am not aware that you can use Xml to contribute or publish data -either to TRCC or to TREP.
My understanding was that the XML functionality is so you can transport Xml Payload between providers and consumers who want to use XML to exchange data - just like you may send Opaque data or AnsiPage data etcAs far as I am aware If you want to contribute data you need to use the conventional FieldList payload with individual fields as illustrated in the TRCC tutorial Posting data to TR Contribution Channel
.payload( FieldList()
.addReal(22, _BID-1, OmmReal::ExponentNeg2Enum)
.addReal(25, _ASK-1, OmmReal::ExponentNeg2Enum)If my colleague Gurpreet has more up-to date information I am sure he will post here.
0 -
OK. So based on my requirement with the 3 RICs, I assume I would need to do 3 posts of payloads?
Is there a way to combine the payload for the 3 RICs it into a single post?
Thanks
0 -
The XML is the payload type, and it can not be carried in the FID which has data type of float or long etc. An XML schema will not automatically translate to updating three float fields in the contribution system.
Like Umer mentioned, you will need to submit three update payloads, one for each instrument, each one having its own unique POST ID. Your application also has to keep track of the ACK/NAK messages for each instrument, to see that your contributions are getting accepted by the system and you are not hitting any update rate limit.
0 -
Thanks for confirming
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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛