question

Upvotes
Accepted
3 1 1 5

Added Decimal places when using OMMConsumer Post

We have just switched from RFA/MarketlinkIP to EMA/Contributions Channel and when contributing to 2 decimal places of precision we are now seeing 4 decimal places shown on Elektron. Can we restrict the precision back to 2 decimal places?

elektronrefinitiv-realtimeelektron-sdkema-apirrtjavacontributionsposting
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.

1 Answer

· Write an Answer
Upvotes
Accepted
25.3k 87 12 25

Hi @peter.morris

Can you please confirm which version of EMA you are using and the language version too?

I just tried the following values with a recent EMA Java version (EMA Java 3.6.0)

and if I post the following values to a RCC test RIC:

int _bid = 3400, _ask = 3410;

using:

FieldList nestedFieldList = EmaFactory.createFieldList();
nestedFieldList.add(EmaFactory.createFieldEntry().real(22, _bid++, OmmReal.MagnitudeType.EXPONENT_NEG_2));
nestedFieldList.add(EmaFactory.createFieldEntry().real(25, _ask++, OmmReal.MagnitudeType.EXPONENT_NEG_2));

I see the following:


If, however, I use int _bid = 340000, _ask = 341000 and EXPONENT_NEG_4, I see the following:

I have not tested with EMA C++, but I expect the same behaviour will manifest.

I viewed the above values in both Refinitiv workspace and a RFA Java Gui example.


1623057352476.png (7.1 KiB)
1623057422856.png (10.5 KiB)
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.

Thank you @umer.nalla, this has fixed our issue. We are also using EMA Java 3.6.0.

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.