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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
11 1 0 0

Pull weight of Stock?

Hi,

I need to Pull of weight of stock in an ETF given RIC of stock, RIC of ETF and time period.For this i am using 'TR.ETPConstituentRIC','TR.ETPConstituentWeightPercent' fields.Below is the code:

'TR.ETPConstituentRIC' field values alone display. Did i do anything wrong?. How can i get stock weight? Am i referring correct fields?

Thank You,

Priya

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
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.

Hi @priyanka

I modified the screenshot to remove your app key, please do not post your app key on the public forum.

1 Answer

Upvotes
Accepted
18k 21 12 20

Hi @priyanka

You should use "Data Item Browser" to check the fields you are requesting as the same suggestion in your previous question.

Here is the tutorial on how to use "Data Item Browser".

'TR.ETPConstituentRIC','TR.ETPConstituentWeightPercent' fields do not support timeseries as in a series however it supports "As of"


From the field formula from "Data Item Browser"

You can use it on Eikon Data API as this:

Note that this is a demo for only 1 day, you can loop your code to request the data from different dates.


ahs1.png (60.6 KiB)
ahs2.png (33.7 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.

Click below to post an Idea Post Idea