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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 0 1

How to get user-selected currency denominated total return on Python API

There is local currency denominated total returns 'TR.TotalReturn' on Python API, but this item seems to be not able to select currency.

How can I get total returns on any currency?

ex) AAPL.O's total return denominated on JPY = (1+r_local)*(1+r_FX),

where r_local = AAPL.O's local return denominated on USD, r_FX = USD/JPY rate return.

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.

Upvotes
Accepted
18k 21 12 20

Hi @zeusu.sato

You can check what parameter is supported on the field you are looking for.

In this case, the TR.TotalReturn does not support the user-selected currency.


To work out your formula, you can retrieve the data and do the calculation on Python.

This is just to show you some idea (but keep in mind that I am not a content expert so the data I am using may be wrong)



ahs.png (70.9 KiB)
ahs2.png (19.3 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.

Upvotes
9.5k 10 5 7

Hello @zeusu.sato

You may see How to get close price in USD eikon data api ? question. In the third API call, it converts data point to specific currency.

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.

Upvotes
1 1 0 1

Hi Pimchaya,

Thank you for your answer, but I'd like to get total return (including dividend), but not price return.

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.

Upvotes
1 1 0 1

Hello @chavalit, I came up with the same idea. It will be very useful if there is a function which can directly calculate user defined currency based return in the future... Thank you

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