Correct Domain type & Field Id for Bid Size/Ask Size/Fair Value or other static data
We can post bid/ask successfully. We still have
difficulty to post these data fields after checking the docs in developer
portal:
Bid Size
Ask Size
Fair Value
Here is our code snippet:
######################### Java code
snippet #########################
FieldEntry bid =
EmaFactory.createFieldEntry().real(22, 123,
OmmReal.MagnitudeType.EXPONENT_NEG_2);
FieldEntry bidSize = EmaFactory.createFieldEntry().real(30, 1000,
OmmReal.MagnitudeType.EXPONENT_0);
FieldEntry ask = EmaFactory.createFieldEntry().real(25, 125,
OmmReal.MagnitudeType.EXPONENT_NEG_2);
FieldEntry askSize = EmaFactory.createFieldEntry().real(31, 1000,
OmmReal.MagnitudeType.EXPONENT_0);
FieldEntry fairValue =
EmaFactory.createFieldEntry().real(3258, 127,
OmmReal.MagnitudeType.EXPONENT_NEG_2);
FieldList fieldList = EmaFactory.createFieldList();
fieldList.add(bid);
fieldList.add(bidSize);
fieldList.add(ask);
fieldList.add(askSize);
fieldList.add(fairValue);
UpdateMsg updateMsg = EmaFactory.createUpdateMsg()
.streamId(postStreamID)
//
.name("APILOG01=TEST")
.name("CH0389071389=LUKB")
//
.name("CH0389070308=LUKB")
.payload(fieldList);
PostMsg postMsg = EmaFactory.createPostMsg()
.streamId(postStreamID)
.postId(postID)
.domainType(EmaRdm.MMT_MARKET_PRICE)
.solicitAck(true)
.payload(updateMsg)
.complete(true);
ommConsumer.submit(postMsg, subStreamHandle);
######################### Java code
snippet #########################
We get this return code:
######################### Return from
TR #########################
Received AckMsg. Item Handle: 3 Closure:
1
Ack Id: 1
Nack Code: DeniedBySource
Text: No such field
######################### Return from
TR #########################
My question is: May I know if we are using the
correct (1) Domain type & (2) Field Id?
Apprecaite your help!
Best Answer
-
Hello @gil.law
Based on the previous question that you are trying to post data to TRCC directly using EMA Java, I suggest you contact the person who have given you TRCC info(server, service) and RICs. You should confirm him if the RIC(CH0389071389=LUKB) is correct and the RIC contains field id 22,30,25,31 and 3258 which you are trying to publish or not. According to No such field error, it seems that the RIC does not contain one or more field(s) you are trying to post data to TRCC.
As far as I know, TRCC currently supports Market Price domain which you use. Hence, the problem should not cause from the domain type.
0
Answers
-
Hi @gil.law Where are you trying to post to?
If the destination is ATS, then the fields have to be defined in the record template. For posting to new contribution channel, your ID has to be permissioned to allow posting to those FID's.
If you are posting to TREP (ADS/ADH) cache, then it should work in most circumstances. There can be certain configuration settings that might not allow this to happen; in which case you should contact your market data administrator.
0 -
Hello @gil.law
In additional, the tutorial and the example source code to post data to TRCC using EMA Java can be found in EMA Consumer - Posting data to TR Contribution Channel
Anyway, if No such field error still exists, please contact the person who have given you TRCC info(server, service) to confirm the RIC's fields that you can post data.
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
- 693 Datastream
- 1.5K DSS
- 630 Eikon COM
- 5.2K Eikon Data APIs
- 12 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 4 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 561 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 281 Open PermID
- 46 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 733 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
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 96 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛