RIC PEGDA prices are stale via API and not align with Eikon

RIC PEGDA trade price does not get update throughout the day via API access from Jan 20th onward. Meanwhile the price is changing when viewing in Eikon desktop.


inst_list =["PEGDA"]


df, err = ek.get_data(

instruments = inst_list,

fields = [

'CF_DATE',

'CF_NAME',

'CF_LAST',

]

)


df

Instrument     CF_DATE  TRADE_DATE  CF_NAME    CF_LAST  
PEGDA 2023-01-20 2023-01-20 PEG DA/d 63.5


Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    @scheung01

    Thanks for reaching out to us.

    I am unable to replicate this issue. Eikon Data API can retrieve the data properly.

    inst_list =["PEGDA"]

    df, err = ek.get_data(instruments = inst_list,
                          fields = ['CF_DATE',
                                    'TRADE_DATE',
                                    'CF_NAME',
                                    'CF_LAST',])

    df

    1675314620816.png

    You may enable logging in the API by using the following code.

    ek.set_log_level(1)

    Then, you will see the raw response.

    2023-02-02 12:07:10,788 P[62116] [MainThread 3556] HTTP Response code: 200
    2023-02-02 12:07:10,796 P[62116] [MainThread 3556] HTTP Response: {"responses":[{"columnHeadersCount":1,"data":[["PEGDA","2023-02-01","2023-02-01","PEG DA/d",57.15]],"headerOrientation":"horizontal","headers":[[{"displayName":"Instrument"},{"displayName":"CF_DATE","field":"CF_DATE"},{"displayName":"TRADE_DATE","field":"TRADE_DATE"},{"displayName":"CF_NAME","field":"CF_NAME"},{"displayName":"CF_LAST","field":"CF_LAST"}]],"rowHeadersCount":1,"totalColumnsCount":5,"totalRowsCount":2}]}

    You may check the version of Eikon and Eikon Data API that you are using.

    1675314781544.png