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).
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: