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
66 2 5 11

Error Code 400 around Bond Data

My code is part of a function I use on a daily basis, and for some reason today I am getting a 400 Error code when I run it. Any Idea on why? ( I am using Python)


bnd_lst = ek.get_data('0#GOVT=BND', fields = 'MATUR_DATE')[0]

bnd_lst.to_pickle('cached_bndlst.pkl')

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

Hello @jgarden

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

Upvotes
Accepted
17.2k 82 39 63

Hi @jgarden,

If it is specific to your particular data set, this may have been a result of a data limit reached. An error code of 400 will be raised in these situations. Review the API Usage a Limit Guidelines document to see if this could be the cause.

My initial thinking is that given you reviewed the above posts, one of which refers to data limits, this may be something else. I just tried your request without issue. If it happens again, please post a screenshot of the call and error details returned.

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
66 2 5 11

The error seems to have worked itself out for the moment

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
17.2k 82 39 63
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.

Yes I reviewed these prior to posting. Unfortunately none of these were relevant as the error was specific to a particular data set, Others worked just fine both before and after.

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.