For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 0 1

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.

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
38.1k 69 35 53

@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.



1598249143017.png (46.3 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea