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.

image

Best Answer

Answers