New posts are disabled while we improve the user experience.

You can browse the site, or for urgent issues, raise a query at MyAccount.

question

Upvotes
Accepted
1 4 2 2

How do I get MEDIAN volume instead of Average volume in python API?

Ringt now I have a list of RICs (Tickere) that I want to get Company name, revenues and median volume for:

df2, err = ek.get_data(Tickere,["TR.CommonName",'TR.Revenue',"TR.AvgDailyVolume90D"])

What should I replace "TR.AvgDailyVolume90D" with to get median daily volume for last 90 days?

eikoneikon-data-apipythonworkspacerefinitiv-dataplatform-eikonworkspace-data-apivolume
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.

1 Answer

· Write an Answer
Upvotes
Accepted
39.4k 78 11 27

A similar question has been previously asked on this thread.
Here's what you're looking for:

df2, err = ek.get_data(Tickere,["TR.CommonName","TR.Revenue","TR.AvgDailyVolume90D","MEDIAN(TR.Volume(SDate=0,EDate=-89D))"])
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.