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
1 0 1 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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apiindex
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 512.0 KiB each and 1.0 MiB total.

@echen1

Please be informed that the question has been moved to Eikon Data API forum.

@echen1

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

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 512.0 KiB each and 1.0 MiB total.

Upvotes
39.4k 77 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 512.0 KiB each and 1.0 MiB total.

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.