I am looking for a way to get the total return prices of a stock. I know that with the get_data method and the TR.CLOSEPRICE field, I can set the option Adjusted=0 and obtain unadjusted prices. However, that that one removes both the adjustment for splits and for dividends. And I would like to keep the only dividends unadjusted, so that I can get to the total return price.
The Eikon support told me how to do that in the Excel API and I am looking for a way to replicate that in Python. Would you be able to help me out (preferably by using the get_data method)?
Option 1) Adjusted prices
=@RHistory("AAPL.O","TRDPRC_1.Timestamp;TRDPRC_1.Close","START:01-Jan-2020 END:20-Apr-2021 ADJUSTED:YES INTERVAL:1D",,"TSREPEAT:NO CH:IN;Fd")
Option 2) Prices unadjusted relative to dividend (according to Eikon Support)
=@RHistory("AAPL.O","TRDPRC_1.Timestamp;TRDPRC_1.Close","START:01-Jan-2020 END:20-Apr-2021 ADJUSTED:NO INTERVAL:1D",,"TSREPEAT:NO CH:IN;Fd")
Thank you for your help!