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.

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.