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
3 0 1 2

TR.ModifiedDurationAnalytics

I can get data for dozens of fields (TR.FiInflationProtected,TR.FiFaceOutstanding, ...) but when I add the field TR.ModifiedDurationAnalytics in my request, it fails with "eikon.eikonError.EikonError: Error code 400 | Backend error. 400 Bad Request". Thanks!

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apidataerror-400
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.

Upvotes
Accepted
32.2k 40 11 19

Hello @ccamani0 and all,

From my testing, the fix appears to be working:

df, err = ek.get_data(['US345397VR12'], 
                      ['TR.FiFaceOutstanding', 'TR.TotalRevenue','TR.ModifiedDurationAnalytics',] )
df

Please let us know if you can confirm the same,

Thanks for reporting this issue,

-AHS


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.

Upvotes
39.4k 77 11 27

@9bf234b5-107d-4720-8505-25879b02dbe1
Could you provide an example you use to reproduce the issue? I just tried ek.get_data('US345397VR12','TR.ModifiedDurationAnalytics') as an example, and I have no problem retrieving the data on my end.

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.

Upvotes
3 0 1 2

Hi Alex, thanks for your reply. You are right, with US345397VR12 it works.

ek.get_data('US345397VR12','TR.ModifiedDurationAnalytics') returns:
Instrument Modified Duration
0 US345397VR12 2.2217

Now I try with another instrument:
ek.get_data('IDEAM_t.MI','TR.ModifiedDurationAnalytics') returns:
Backend error. 400 Bad Request

I know that ModifiedDurationAnalytics is not relevant for that security, but why do I get a 400 Bad Request instead of NaN, like for this request:
ek.get_data('IDEAM_t.MI',["TR.FiCouponFrequency", "TR.FiMaturityDate"]) which returns:
0 IDEAM_t.MI NaN NaN

Thanks!

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.

@9bf234b5-107d-4720-8505-25879b02dbe1
Thanks for reporting this issue. I see the inconsistency in the error handling on the backend. I raised case #06896950 on your behalf with TR Helpdesk. The Helpdesk will escalate the issue to the development team and will keep you informed of the progress.

Upvotes
3 0 1 2

Yes, I confirm that the fix is working

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.

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.