question

Upvotes
Accepted
0 1 0 0

Get all quotes in an instrument via permid API

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

permid-apiintelligent-tagging-apiopen-permid-api
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.

1 Answer

· Write an Answer
Upvote
Accepted
77.5k 242 52 72

@sandernooij

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:


1611212656609.png (71.4 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.