Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
644 4 7 8

How can I retrieve a range of historical values for field TR.YieldToMaturityAnalytics with Eikon DAPI?

I seem to be able to retrieve a point in time history for YTM ,,, but how can I retrieve a range of dates? i.e. I want the YTM values between 2019-10-10 and 2019-10-20 .

This Code works for retrieving a single date; how can it be modified to extract a range?

ek.get_data(['717081EP4='],['TR.YieldToMaturityAnalytics(ValuationDate=2019-10-10)'])

get_timeseries() retrieves NA... any thoughts?

ek.get_timeseries(["717081EP4="], ["TR.YieldToMaturityAnalytics"], start_date="2019-10-09, end_date="2019-10-20")
eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apidata
icon clock
10 |1500

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

1 Answer

· Write an Answer
Upvotes
Accepted
18.2k 21 13 21

Hi @James.Perkins

The TR.YieldToMaturityAnalytics field does not support series retrieval.

So it is not possible to retrieve it in series using get_data API call.

And this field is not available on get_timeseries API call as well.

icon clock
10 |1500

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

Thank you for the reply. I was hopnig for a different answer.... I guess that means you would need to create a seperate call for each date for each RIC to retrieve any historical FI Analytics.... It just seems counterintuitive that I can retrieve any historical point in time value (i.e. the data is there), but not consecutively.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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