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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
9 0 1 1

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-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.

1 Answer

Upvotes
Accepted
18k 21 12 20

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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea