EMA returns data with extra spaces compared to RFA. Is it expected?

EMA returns data with extra spaces compared to RFA. Is it expected? For e.g.

For a DATE value RFA gives "30 APR 2018" where as EMA gives "30 APR 2018 ".

Best Answer

  • As far as I can tell from GitHub the bug in toString() for DATE type was fixed on 20-Dec-2017. The last release that had this bug was 1.1.1 so anything later than that should be okay. When you upgrade, remember that all Elektron Java APIs were released on Maven Central a few days ago so much easier to use that going forward in my opinion.

    As for fields of type RMTES_STRING or ASCII_STRING the trailing spaces may indeed be intentional, for example for a FX Spot RIC "EUR=", I get :

    Fid: 831 Name: CTBTR_1 value: "BARCLAYS  "

    Such trailing spaces will exist in both RFA and ETA/EMA as they are from the wire value, meaning the source is actually publishing the data like that.

    However, for a field like ISIN_CODE it does seem a bit weird if it would have a trailing space.

Answers