For a deeper look into our Eikon Data API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
I don't believe there's a way to do this in Eikon, but you may want to verify this with Refinitiv Helpdesk by asking if there's a way to do this using =TR function in Eikon Excel. If there's a way to do this using a formula in Excel, then this formula can be replicated using Eikon Data APIs. If there's no way to retrieve this data into Excel using worksheet functions, then there's no way to retrieve it using Eikon Data APis either.