New posts are disabled while we improve the user experience.

You can browse the site, or for urgent issues, raise a query at MyAccount.

question

Upvotes
Accepted
1 0 1 1

How to get Spread data of the product

Hi,

So I was fetching the data of the different commodities for making a historical database using the code snipet

now i have successfully fetched the contract chain of the products using that c1, c2..... nomenclature now i want to fetch the spread of those products kindly help the problem is for every product there are different contracts months

I there any function which will give the contract month on giving eg--- "LCOc1"--- it will give me "LCOU3" the current month of the contract

eikon-data-api#technology#productcommoditiesspread
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
Upvotes
Accepted
1.5k 5 3 7

Hi @nitin.gupta

You can do it with the rd library

import refinitiv.data as rd
rd.open_session()
rd.discovery.search(
    view = rd.discovery.Views.SEARCH_ALL,
    filter = "RIC eq 'LCOc1'",
    select = "AliasRIC"
)
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.