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
1 0 0 1

Market Cap from ISIN. Used to work, does not work anymore.

Some weeks ago I downloaded the market capitalization from a list of ISINs using the following code. Now, the same code does not work anymore. Why?

1643305521920.png

eikon-data-apipython api
1643305521920.png (11.4 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
Upvote
Accepted
10.6k 20 6 9

@popescua So i think the issue here is that the implied ISIN to RIC symbology conversion could not return a 'best match' singular resolution. In cases such as these you can use the get_symbology API call and set the best_match parameter to false and then select the first RIC suggested.

ric = ek.get_symbology('AU0000069130',from_symbol_type='ISIN',to_symbol_type='RIC',best_match=False)

params = {'SDate':'20220101','EDate':'20200101','Frq':'D'}
df,err = ek.get_data(ric['RICs'][0][0],['TR.CompanyMarketCapitalization.date','TR.CompanyMarketCapitalization'],params)
df

1643308581307.png

I hope this can help.


1643308581307.png (161.9 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.