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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 0 0 2

index constituents repsonse always 'nan' or message is backend error 400

my code is

ek.set_app_id('xxx')

df = ek.get_data(['.STOXX'], ['TR.IndexConstituentRIC', 'TR.IndexConstituentName','TR.IndexConstituentWeightPercent'], {'SDate':'20160601'})

or

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonindex
1.png (39.3 KiB)
2.png (43.9 KiB)
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
3.8k 4 4 6

HI @echen1

Most probably you are not getting this as it is leading to ICW (Index, Constituent and Weightings) data and this is a fee liable service.

If that is the case, then e.g. for <.STOXX> you are missing service called STOXX INDEX CONSTITUENTS AND WEIGHTS_STS.

I recommend to reach out to your local Client Success Manager who will share more details how to order and include that into your Eikon subscription.

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

@echen1
In addition to the answer by @marcin.bunkowski, if you're experiencing the requests randomly returning "Backend error. 400 Bad Request", make sure you're using the latest version 1.0.1 of Eikon Data APIs library for Python.
The issue with the Web service returning empty response or "Backend error. 400 Bad Request" has been addressed with the release of Eikon Data APIs library for Python v1.0.1 available on PyPI.

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