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

How to search by multiple CUSIPs at a time (ex. 1500 CUSIPs at a time)?

I need to search by multiple CUSIPs at a time (about 1500 CUSIPs at a time).

Followed the instructions below:

The workaround is using template: https://github.com/LSEG-API-Samples/Example.DataLibrary.Python/blob/main/Examples/1-Access/EX-1.01.06.1-SearchTemplates-Equities.ipynb.

The template is defined in search-templates.config.json file.

The code looks like this:

rd.load_config("search-templates.config.json")
search_rics = rd.discovery.search_templates['CUSIPS']
result = search_rics.search(cusips=' '.join(f"'{w}'" for w in cusip_list))
result


Already downloaded the config file from github. However, now I'm getting the below error for CUSIP search. Please check the attached screenshot showing the error.


#technologypython apirefinitiv-data-libraries
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.

@MarkJayson.Lima

Please re-post the screenshot.

Upvotes
Accepted
84.6k 287 53 77

@MarkJayson.Lima

Please use this search-templates.config.json.txt.

Rename it to search-templates.config.json.


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.

Upvotes
1 0 0 1

Here it is @Jirapongse syntax-error.png


syntax-error.png (83.2 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.