XAU= has no time stamp (EMA Java API)

hujunhu
hujunhu Explorer

Hi, I am using EMA to get market price data. Most of the instruments I am using is fine except "XAU=".

I cannot get time stamp for it.

I used "QUOTIM" and "QUOTE_DATE" to get time stamp. May I know why? and how to solve it?

Thank you.


Welcome!

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

Best Answer

  • Hello @hujunhu

    The number in brackets(5) and (17) are the field id of TIMACT
    and ACTIV_DATE respectively. You can find the fields’ info including their type
    in RDMFieldDictionary shipped with EMA package:

    image

    The type(the 7th column) of TIMACT are TIME(DataTypes.TIME) and the
    type of ACTIV_DATE is DATE(DataTypes.DATE). You can refer to consumer.series200.example200__MarketPrice__Streaming
    which demonstrate how to decode a field according to its type. The example output:

    Item Name: XAU=
    Service Name: API_ELEKTRON_EPD_RSSL
    Fid: 3 Name = DSPLY_NAME DataType: Rmtes Value:
    Fid: 5 Name = TIMACT DataType: Time Value: 9:55:0:0
    Fid: 11 Name = NETCHNG_1 DataType: Real Value: 0.82
    Fid: 17 Name = ACTIV_DATE DataType:Date Value: 4 / 1 / 2018
    ….

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.