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 3 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-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-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.

Hello @bendik.ronning,

Thank you for your participation in the forum.

Is the reply below satisfactory in resolving your query? If yes please click the 'Accept' next to the 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

Hello @bendik.ronning,

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

Thanks,

-AHS

1 Answer

· Write an Answer
Upvotes
Accepted
39.4k 77 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.