How to retrieve trace data using Eikon API

I would like to retrieve trace data using API, how can I do so?

Best Answer

  • chavalit-jintamalit
    Answer ✓

    Hi @karleng.teo

    You can try this code:

    df = ek.get_timeseries('88160RAD3=FINR', start_date='2021-04-01', end_date='2021-04-21', interval = 'tas', raw_output=True)
    df

    Then convert the json to dataframe:

    df2 = pd.DataFrame(df['timeseriesData'][0]['dataPoints'])
    df2


    image

    I could not find the "Conditions" information.

    I think the FILTER_CODE2 is used to categorize the Buy/Sell.

    But you should clarify the information with Refinitiv Content Helpdesk.

    The Refinitiv Content Helpdesk can be reached using Contact Us capability in your Eikon application.
    Or by calling the Helpdesk number in your country.
    Or at https://my.refinitiv.com/



Answers