question

Upvotes
Accepted
87 7 13 27

[EMA C++]How to get the "timestamp" when I reveive refreshMsg and updateMsg

hello:

I develop with EMA C++;

I want to know how to get "timestamp" of refreshMsg & updateMsg,

so that I can get the time when the msg is created.

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-apitime-stamp
time.png (191.8 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.

Comment from customer support #Case 07161685#

Client has contacted customer support and this question is quite important for him. We do have system entry time as below , can we get the same via API ?

0001hk-trth.png (231.0 KiB)

Hello @luxiangyuan,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query?

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

Thanks

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
25.3k 87 12 25

Hi @luxiangyuan

Any RefreshMsg or UpdateMsg you receive is created by the server you are connected to, I am guessing that the time it was created by the server is not what you are after?

I would guess that you are after the timestamp for when the Tick / Update and hence the time of the Market Activity on the exchange where the data originates from. Is this correct?

Any timestamps provided by the exchange (or 3rd Party vendor) would appear in a field (in the FieldList) - but only if the exchange provided Refinitiv with any such timestamp.

If the exchange does not provide a timestamp then we do not typically add a timestamp field to the FieldList.

If the exchange does provide a timestamp, it is usually found in a TIME type field e.g. TIMACT, TRDTIM_1, SALTIM

Where the exchange provides more accurate timings they appear in fields like
TRDTIM_MS (3853), SALTIM MS (3854). These are unsigned integer fields as they contain milliseconds since midnight - so for example 29,295,123 is 08:08:15:123.
Note that sometimes the _MS fields wont contain millisecond granularity so e.g. they may just contain a value like 29,295,000 = 08:08:15:000. This would be the case if the exchange did not provide a millisecond accurate value.

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.