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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 1 2 4

Adjusted prices using get_data

Hi, is it possible to get historic prices adjusted for corp actions using get_data? I cant get it to work. I am also returning results in USD. Below is code I am using

dfmcap2, err = ek.get_data(['GPOR.L'],['TR.Close'],{'SDate':setdate, 'EDate':sd, 'Curn':'USD'})
eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythondata
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
38.1k 69 35 53

Please try TR.CLOSEPRICE with the Adjusted parameter.

dfmcap2, err = ek.get_data(['GPOR.L'],['TR.CLOSEPRICE.date','TR.CLOSEPRICE(Adjusted=1)'],{'SDate':0, 'EDate':-16, 'Curn':'USD'})

dfmcap2, err = ek.get_data(['GPOR.L'],['TR.CLOSEPRICE.date','TR.CLOSEPRICE(Adjusted=0)'],{'SDate':0, 'EDate':-16, 'Curn':'USD'}) 


output.png (40.4 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