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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 0 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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythondataerror-400
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.

Upvotes
Accepted
23k 22 9 14

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 5.0 MiB each and 10.0 MiB total.

Upvotes
39.2k 75 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 5.0 MiB each and 10.0 MiB total.

Upvotes
3 0 0 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 5.0 MiB each and 10.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 0 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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea