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?

image

Best Answer

  • umer.nalla
    umer.nalla LSEG
    Answer ✓

    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:

    image


    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.

    image

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

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.