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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
26 2 1 5

How do I get the currency of an instrument using Eikon API

Hi,

Is it possible to get the currency of an instrument using Eikon API

If I was using Exel the field is CF_CURR, but am I limited to only TR. fields when using the API ?

Thanks,

Fergal

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonc#forex
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

Upvote
Accepted
6.7k 8 6 7

Hi @fergal.twomey you can use non TR. fields as well - see below:

RICS = ['VOD.L']
fields = ['CF_CURR']
df,err = ek.get_data(RICS,fields)
df
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.

Exchange is 'CF_EXCHNG' and regarding country there are a number of options - have you used the Data Item Browser? (type DIB into the Eikon Search bar) - you can look at all the fields available by searching on a keyword such as exchange or country etc. Its a really excellent data discovery tool. Note you can also check available parameters and if you type in an instrument you can also get the values to zero in exactly on which field you want.

Thank you - that helped.

I was passing sedol or ISIN as the instrument and it was not returning CF_CURR, but once I used ticker symbol it worked. Thank you.

What about Exchange and MSCI Country filed ?

Is it possible to get this data too ?

Thank you !

Click below to post an Idea Post Idea