question

Upvotes
Accepted
29 1 1 3

Get all futures contracts from ticker or isin

Hi all,


I'm trying to find the query to get all futures contract info from the underlying isin / ticker.


More specifically, i would like to input the isin/ticker of a security and get all the futures contract on that security. The final goal of this would be to get the RIC code of these contracts.


Does anyone have an idea ?


Thanks,

#contentrefinitiv-data-platformricsderivativesisin
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
Accepted
83.1k 281 53 77

@adam.leroux

Thank you for reaching out to us.

I can search all future RICs with an organization PermID by using the Refinitiv Data Library for Python.

First, I need to find an organizarion PermID for an ISIN.

df = rd.get_data(universe=['US02079K1079'],fields=['TR.OrganizationID'])
df

1715743693336.png

Then, use the Organization PermID to search for future RICs.

df1 = rd.discovery.search(
    view=rd.discovery.Views.EQUITY_QUOTES,
    select="DocumentTitle,RIC,UnderlyingQuoteRIC,DerivedCategory,AssetState", 
    filter=f"UnderlyingIssuerOAPermID eq '{df['Organization PermID'][0]}' and DerivedCategory eq 'FUTURE' and AssetState eq 'AC' and IsChain eq false",
    top=10000
)
df1

1715743924034.png

The samples are on GitHub. For more information regarding the search API, please refer to the Building Search into your Application Workflow article.


1715743693336.png (3.5 KiB)
1715743924034.png (24.9 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.

Thank you for this answer.


Is there a documentation where all possible filters are listed ? I would like to filter not by "UnderlyingIssuerOAPermID" but by underlying RIC, for exemple list all futures on the OMXC25CAP index.

Thanks

Hi @adam.leroux ,

You can use Advanced Search application as a helper in finding the available filters, please check this article for more detail Find content and functionality using Refinitiv Data Library with Eikon Advanced Search

Upvotes
29 1 1 3

@raksina.samasiri

Thanks for your answer.

How can i see the available filter in advanced search ? From what I've seen not all filter are in the "columns" section in AS.


In the attached screenshot, you see all the columns available for equity futures, and there is no "UnderlyingIssuerOAPermID" or "AssetState" for exemple.

1716449230810.png



Isn't there a documentation somewhere that lists all avaiable filter for each discovery.views ?



Thanks,


1716449230810.png (13.8 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.

Upvote
83.1k 281 53 77

@adam.leroux

For questions regarding the advanced search, please contact the helpdesk team directly via MyRefinitiv.

You can list all available fields by using the search metadata, as shown in the EX-2.06.03-Search-Metadata.ipynb example on GitHub.

To get all possible fields's values, you may use the navigators which provide the ability to summarize the distribution of your results. They are particularly useful when you are interested in gathering the domain of values for a specific property.

For more information, please rerfer to the Building Search into your Application Workflow article.

The examples are also on GitHub.

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.