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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
19 7 10 9

EMA Returns TIME value upto nanoseconds, whereas RFA used to return upto seconds. Is this intentional?

We have noticed difference in time values, RFA used to return "20:12:27" whereas EMA returns "20:12:27:000:000:000". Not sure if this was intentional or not ?

elektronrefinitiv-realtimeelektron-sdk
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.

@gaurav.mahajan

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

@gaurav.mahajan

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Hi @gaurav.mahajan

Please be informed that a reply has been marked as answering the question. Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
9.6k 10 7 7

Hello @gaurav.mahajan

EMA is designed to support MiFID II(the precision of timestamp extends to microsecond and nanosecond) from the beginning. That’s why you see it returns the timestamp up to nanosecond i.e. 20:12:27:000:000:000 even the timestamp’s precision is up to second. While RFA 8.x has been enhanced to support microsecond and nanosecond later from RFA 7.x. RFA 7.x supports up to second and millisecond and it throws an exception if it receives time stamp containing microsecond or nanosecond. For more details, please refer to the article Coding For High Precision Time . That’s why you see RFA returns up to second for the second timestamp.

Based on my test, RFA 8.x returns timestamp according to the timestamp’s precision. For example:

  • second timestamp: 20:12:27
  • Millisecond timestamp: 20:12:27:001
  • Microsecond timestamp: 20:12:27:001:002
  • Nanosecond timestamp: 20:12:27:001:002:003

While EMA returns up to nanosecond regardless the timestamp's precision. For example

  • second timestamp: 20:12:27:000:000:000
  • Millisecond timestamp: 20:12:27:001:000:000
  • Microsecond timestamp: 20:12:27:001:002:000
  • Nanosecond timestamp: 20:12:27:001:002:003

Anyway, EMA provides com.thomsonreuters.ema.access.OmmDateTime interface which has the method to get hour, minute, second, millisecond, microsecond and nanosecond. Hence, you can use the methods to get only unit time you prefer. Please refer to the method decode(FieldList fieldList) in the Consumer example application in example200__MarketPrice__Streaming demonstrating how to use these methods.

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.