Hi, I'm trying to get all quotes using a permid of an instrument. My workflow is as follows. Using a LEI I get the instruments issued by the LEI. And for all these instruments I would like to see all listings (RICs).
Hi, I'm trying to get all quotes using a permid of an instrument. My workflow is as follows. Using a LEI I get the instruments issued by the LEI. And for all these instruments I would like to see all listings (RICs).
Thank you for your participation in the forum. Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply that best answers your question. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.
Thanks,
-AHS
Hi,
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS
I don't think that the PermID API supports this scenario. You can use PermID API to search for LEI (LEI:VGRQXHF3J8VDLUA7XE92).
https://api-eit.refinitiv.com/permid/search?access-token=<token>&q=LEI%3AVGRQXHF3J8VDLUA7XE92
However, you can't search the instruments issued by the LEI.
To do this, you need to use Entity Bulk Download by loading Organization, Instrument, and Quote entity bulk files to the RDF storage. Then, use SPARQL to query the results. For more information, please refer to the PermID Entity Bulk Download with Apache Jena article.
The SPARQL for querying RICs issued by the LEI looks like:
SELECT ?QuotePermID ?RIC ?NAME WHERE { ?LEIPermID <http://permid.org/ontology/organization/hasLEI> "VGRQXHF3J8VDLUA7XE92" . ?InstrumentPermID <http://permid.org/ontology/financial/isIssuedBy> ?LEIPermID . ?QuotePermID <http://permid.org/ontology/financial/isQuoteOf> ?InstrumentPermID . ?QuotePermID <http://permid.org/ontology/financial/hasRic> ?RIC . ?QuotePermID <http://permid.org/ontology/common/hasName> ?NAME }
The output is: