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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
5 0 0 2

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-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonchain-ric
isin.png (5.5 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.

1 Answer

Upvotes
Accepted
38.1k 71 35 53

@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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea