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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
89 9 16 18

Data-Time LL2 RTMD service - problem, help

RTMD service

I get real time with the code

OmmConsumer consumer(config.host("1**.***.***.*:14002").username("EM1_****_*********"));        consumer.registerClient(ReqMsg().serviceName("hEDD").domainType(MMT_MARKET_PRICE).name("ESZ1m"), client)        sleep(1200000); 


data in this format

UpdateMsgEnd
UpdateMsg
    streamId="5"
    domain="MarketPrice Domain"
    updateTypeNum="0"
    seqNum="23280"
    name="ESZ1m"
    serviceId="259"
    serviceName="hEDD"
    Payload dataType="FieldList"
        FieldList
            FieldEntry fid="17" name="ACTIV_DATE" dataType="Date" value="06 DEC 2021"
            FieldEntry fid="5" name="TIMACT" dataType="Time" value="12:37:00:000:000:000"
            FieldEntry fid="4148" name="TIMACT_MS" dataType="UInt" value="45434283"
            FieldEntry fid="732" name="BEST_BSIZ3" dataType="Real" value="29"
            FieldEntry fid="6546" name="NO_BIDORD3" dataType="UInt" value="18"
            FieldEntry fid="741" name="NO_BIDMKR3" dataType="Real" value="18"
        FieldListEnd


    PayloadEnd
UpdateMsgEnd
UpdateMsg
    streamId="5"
    domain="MarketPrice Domain"
    updateTypeNum="0"
    seqNum="23296"
    name="ESZ1m"
    serviceId="259"
    serviceName="hEDD"
    Payload dataType="FieldList"
        FieldList
            FieldEntry fid="17" name="ACTIV_DATE" dataType="Date" value="06 DEC 2021"
            FieldEntry fid="5" name="TIMACT" dataType="Time" value="12:37:00:000:000:000"
            FieldEntry fid="4148" name="TIMACT_MS" dataType="UInt" value="45434283"
            FieldEntry fid="731" name="BEST_BSIZ2" dataType="Real" value="16"
            FieldEntry fid="6545" name="NO_BIDORD2" dataType="UInt" value="14"
            FieldEntry fid="740" name="NO_BIDMKR2" dataType="Real" value="14"
        FieldListEnd


no time stamp!!!!

In the history files there is a message header with the date-time

something like this:

Date-Time
2016-09-01T19:00:00.022987351-05

And how in real-time at LL2, to understand where the seconds, milliseconds, nanoseconds are? How to distinguish messages that have all the same time FieldEntry fid="5" name="TIMACT" dataType="Time" value="12:37:00:000:000:000"

And what is the format of FieldEntry fid="4148" name="TIMACT_MS" dataType="UInt" value="45434283" not clear to me.


The main question, is it possible to output in the message header, using code, analogous to what is in the history files? I mean Data-Time in the format

2016-09-01T19:00:00.022987351-05


Please help me with the code, this information is critical to me. FID5 is useless for math.

Please help me with the code, this information is critical to me. FID5 is useless for mathematical formulas.

I need normal time format to ms or nanoseconds either in FID or in header to updat messages.

ema-apirefinitiv-real-time
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.

Upvote
Accepted
24.7k 86 10 22

Hi @s61670

TIMACT_MS is milliseconds since midnight, so for example

45434283 = 12:37:14:283

If you want a brief description of any field you can check the RDMFieldDictionary file which is present in the Cpp-C\etc folder of the RT-SDK package.

If you need additional information beyond what is present in the above file, then you can use the Data Model Discovery tool - or raise a Content ticket on My.Refinitiv.

Some of our data also has Nanosecond times - in fields with _NS suffix e.g. QUOTIM_NS - you can raise a Content ticket if you want to discover which sets of data (exchange/asset classes) have these fields.


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.

Upvotes
89 9 16 18

I would like to get a timestamp in LL2 in real-time.

I don't understand the format ieldEntry fid="5" name="TIMACT" dataType="Time" value="13:37:00:000:000:000" - time to minutes only. How do I distinguish some messages by time from others? Not clear.

FieldEntry format fid="4148" name="TIMACT_MS" dataType="UInt" value="45434283" is not clear in real time either.

It starts at 45 everywhere, even after a few minutes.

Where are the milliseconds, microseconds, nanoseconds. How to read this format and where are the seconds in it?

In the Legacy history files above the update message, there is a Data-Time field where the timestamp is properly labeled. Why is this label not present in real time?

After all, the real-time LL2 is the same as the Legacy in the historical data.

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.