return date in get_data query

Is it possible to display the respective time print on the following get_data query:

ek.get_data(instruments='086790.KS',fields='TR.NonperformingLoansPctofLoans',parameters={'Frq':'Y','SDate':'2015-01-01', 'EDate':'2021-01-01'})

The problem is among other things that the returned values are not in line with the date display/timeprint in Eikon.

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    @mika.kastenholz1

    You can use the TR.NonperformingLoansPctofLoans.Date field, as shown below.

    df, err = ek.get_data(instruments='086790.KS',fields=['TR.NonperformingLoansPctofLoans.Date',
                                                          'TR.NonperformingLoansPctofLoans'],
                          parameters={'Frq':'Y','SDate':'2015-01-01', 'EDate':'2021-01-01'})
    df

    You can use the Data Item Browser (DIB) to see all values in the TR.NonperformingLoansPctofLoans field.

    image