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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
66 0 2 7

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-apipythonworkspaceworkspace-data-apirefinitiv-dataplatform-eikonerror-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
12.1k 59 39 61

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

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
12.1k 59 39 61
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.