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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
21 0 0 0

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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonerror-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
9.7k 49 38 60

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

Upvotes
21 0 0 0

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

Upvotes
9.7k 49 38 60
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.

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.

Click below to post an Idea Post Idea