Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
5 1 1 3

How to get ISIN codes from Chain RIC

We try to get ISIN codes from ChainRIC in Python.

When we run following code but returned error.

Does Python support get data by ChainRIC ?

-----------------------------------------------------------------------

data,err = ek.get_data('0#GBBMK','TR.ISIN')
data.head()

-----------------------------------------------------------------------

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apichain-ric
isin.png (5.5 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
79.1k 250 52 74

@KA27

The correct RIC could be 0#GBBMK= and I got the same result as yours.

To get ISIN for RICs in that chain, I use the below code.

data,err = ek.get_data('0#GBBMK=',['DSPLY_NAME'])
ricList = data['Instrument'].tolist()
isin = ek.get_symbology(ricList, from_symbol_type="RIC", to_symbol_type="ISIN", bestMatch=True)
isin

First, I use get_data to retrieve a list of RICs in that chain and then use get_symbology to convert RICs to ISINs. The output is:


output.png (23.7 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.