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?
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
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?
Hi @popescua ,
Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.
Thanks,
AHS
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS
@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
I hope this can help.