Hi, I have a quick question. The following is copied from the API code example: import lseg.data as ld from lseg.data.content.ipa.financial_contracts import cds response = cds.Definition( instrument_tag="Cds1_InstrumentCode", instrument_code="BNPP5YEUAM=R",…
Please convert in Python API: =@spotcalc (today,2) It is just a function that pulls the spot date and you can input a "days to spot" parameter. That's what I need to do in python.
How can we pull futures curve for different dates in python? For example, how would I pull prices of 0#CL: for today, and compare it to yesterday?
Dear Support Team, I am reporting a significant performance degradation and intermittent service failures when using the Refinitiv Data Library for Python, which began on January 15, 2026, and persists as of today, January 16. Context Prior to January 15, the system performed optimally. Our current workflow processes 42…
Hello, Is it possible to get the historical constituents of a corporate bond index? For example the iBoxx EUR Corporates Index (.IBBEU003D). I've already tried the example below which doesn't work unfortunately. Many thanks.
Hello all, running the code from Building historical index constituents | Devportal to access STOXX600 constitutes result in partly >600 constitutes as Leaver/Joiners for one day do not even out. How to solve this issue? For sure, it would be a solution to run get_constituents_as_of for every today, however, this is quite…
Can anyone tell me why it returns an error? Are there indices that are compatible with 0# notation and those are not? Is there something wrong in my code? How can I see the list of all the constituents of an index? import lseg.data as ld ld.open_session() This one works.str_test = "0#.TSPM" l_field_test = ['TR.RIC']…
Do you know why the 1st value from df = ld.get_data(universe = ['LSEG.L'],fields=['TR.TSVWAP(CALCMETHOD=SUM,POINTS=2,Frq=D,SDate=0,EDate=-40)']) and df = ld.get_data(universe = ['LSEG.L'],fields = ['TR.TSVWAP(CALCMETHOD=SUM,POINTS=20,Frq=D,SDate=0,EDate=-40)']) are the same (in this case 8954) when one should be the sum of…
Question import osimport pandas as pdimport lseg.data as rdfrom pandas.tseries.offsets import BDay# ===========================================================# CONFIG# ===========================================================TICKER = ".SPX"FIELD = "TRDPRC_1" # Last traded priceINTERVAL = "1min"OUTPUT_DIR =…
It looks like you're new here. Sign in or register to get started.