For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 4 7

Wrong ask size shown on Reuters Eikon while publishing using TRCC

when I use the sample code from Reuters to publish ask price, bid price, ask size and bid size to a RIC. The ask and bid size shown on my Reuters Eikon Quote pages are always wrong. For example. if I set the ask size to be 1, the price shown on the quote page is 0.1. The code section I used to set ask size and bid size are following.

FieldList nestedFieldList = EmaFactory.createFieldList();

nestedFieldList.add(EmaFactory.createFieldEntry().realFromDouble(393, bid, OmmReal.MagnitudeType.EXPONENT_NEG_1));

nestedFieldList.add(EmaFactory.createFieldEntry().realFromDouble(275, ask, OmmReal.MagnitudeType.EXPONENT_NEG_1));
nestedFieldList.add(EmaFactory.createFieldEntry().real(791, bidSize,OmmReal.MagnitudeType.EXPONENT_NEG_1));
nestedFieldList.add(EmaFactory.createFieldEntry().real(985, askSize,OmmReal.MagnitudeType.EXPONENT_NEG_1));
elektronrefinitiv-realtimeelektron-sdkjavacontributionsrcc-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 @pinzhang.wang,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the 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

1 Answer

· Write an Answer
Upvotes
Accepted
78.8k 250 52 74

@pinzhang.wang

The question has been answered on this thread.

The createFieldEntry().real(int fieldId, long mantissa, int magnitudeType) is used to create OMMReal from mantissa and mangitudeType. You can use EXPONENT_0 to preserve a value of mantissa.

The createFieldEntry.realFromDouble(int fieldId, double value, int magnitudeType) is used to convert double to OmmReal and uses the magnitudeType for the conversion.

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.