question

Upvotes
Accepted
3 1 0 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-sdkrrtema-apijavacontributionsposting
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

Upvotes
Accepted
25k 87 11 23

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.