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
9 3 4 5

get_data adjusted prices

I would like to confirm two things about the adjusted/unadjusted stock prices data when using get_data:

(1) get_data() function by default returns stock prices that are adjusted for stock splits but NOT for dividends, so that the below two calls return the same data

df1 = ek.get_data("BA", ["TR.PriceClose.Date", "TR.ClosePrice"],
{"SDate": "1990-01-01", "EDate": "2020-07-31"})[0]

df2 = ek.get_data("BA", ["TR.PriceClose.Date", "TR.ClosePrice"], 
{"Adjusted":"1", "SDate": "1990-01-01", "EDate": "2020-07-31"})[0]

(2) There is no parameter for get_data that returns prices adjusted for dividends - this needs to be done manually.

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-api
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
18.2k 21 13 21

Hi @oik22

You can use "TR.ClosePrice" field instead.

This field supports the adjusted parameter.


Here is the sample comparison:


ahs2.png (61.9 KiB)
ahs1.png (53.2 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.

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.