question

Upvotes
Accepted
1 1 2 3

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!

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @gil.law,

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,
AHS

Hello @gil.law,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvotes
Accepted
9.6k 10 7 7

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

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.

Upvotes
22.1k 59 14 21

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.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.