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 3 5 5

Find out if a company is listed on multiple exchanges using the Python API?

Is there a way to determine if a company is listed on multiple exchanges using the Python API? Currently I can find out where a company is based:

ek.get_data(['RIO.AX'], ['CF_NAME', 'TR.CompanyMarketCap', 'TR.HeadquartersCountry'],
                        {'SDate': '0CY'})

However, I haven't been able to find a way to determine if this company is also on another exchange (in this case, Rio Tinto is based in Australia, but also on the London exchange).

eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apiapiexchanges
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.

@jack.simpson0, thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question. Thanks, AHS

@jack.simpson0
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
-AHS

1 Answer

· Write an Answer
Upvotes
Accepted
4.6k 26 7 22

Since there is not really a searching capability within the API, the only way I found to achieve this is a little rusty. The key is to use the raw output of the get_symbology function, and use the ISIN as an input:

tr.get_symbology(['AU000000RIO1'], to_symbol_type='RIC', raw_output=True, bestMatch=False)

You can ignore the RICs with hat suffixes, these are delisted shares, where the first letter is the month code and the year (you can look them up on RULES2 page in the quote app on Eikon).


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.