Ideally I would want to pull a list of all economic data that is being release on a specific day with high impact in certain countries e.g. Germany, US
Similar to what you can see in the economic monitor in the desktop app
@TatiannahMarie.Hidalgo
Thank you for reaching out to us.
This forum is dedicated to software developers using LSEG APIs. The moderators on this forum do not have deep expertise in every bit of content available through LSEG products, which is required to answer content questions such as this one.
The best resource for content questions is the Helpdesk support team, which can be reached by submitting queries through LSEG Support. The support team will either have the required content expertise ready available or can reach out to relevant content experts to get the answer for you.
You need to ask for the Excel formula, such as =RDP.Data, that can be used to retrieve the required data. Then, we can help you converting that formula to Python code.
Hi @Jirapongse
Thank you so much for responding back to us. Upon checking, we have this excel template similar to the client's query where it can pull based on per country you choose to check. Let me know if it is feasible to create an API Script
Hi @TatiannahMarie.Hidalgo ,
The code below can be used
import lseg.data as ld ld.open_session() rics = ['GBBOEI=ECI','GBTAPP=ECI','GBBOEQ=ECI','GBBEQE=ECI','GBMPCH=ECI','GBMPCU=ECI','GBMPCC=ECI','GBBRC=ECI','GBCARM=ECI','GBCARY=ECI','GBPCRG=ECI','GBCBIS=ECI','GBCBIO=ECI','GBCBOI=ECI','GBCCU=ECI','GBCRED=ECI','GBMTG=ECI','GBMTGA=ECI','GBM4=ECI','GBM4T=ECI','GBGD3M=ECI','GBGDMM=ECI','GBGDMY=ECI','GBSVCM=ECI','GBSVCY=ECI','GBIP=ECI','GBIPY=ECI','GBMFG=ECI','GBMFGY=ECI','GBCONM=ECI','GBCONY=ECI','GBCRRT=ECI','GBTBAL=ECI','GBNEUT=ECI','GBGDF=ECI','GBGDFY=ECI','GBBUI=ECI','GBBIF=ECI','GBCURA=ECI','GBGDP=ECI','GBGDPY=ECI','GBBUIP=ECI','GBBIFP=ECI','GBGFK=ECI','GBHHP=ECI','GBHHPY=ECI','GBCPXM=ECI','GBCPXY=ECI','GBHICM=ECI','GBHICY=ECI','GBRPIM=ECI','GBRPI=ECI','GBRPIX=ECI','GBRPIY=ECI','GBRPIN=ECI','GBCPIT=ECI','GBIPSO=ECI','GBMTGR=ECI','GBLABP=ECI','GBLOAN=ECI','GBNWHP=ECI','GBNHP=ECI','GBPMCF=ECI','GBPMMF=ECI','GBPMSF=ECI','GBPMIC=ECI','GBCPMI=ECI','GBPMIM=ECI','GBPMIS=ECI','GBPIPM=ECI','GBPIP1=ECI','GBPPI=ECI','GBPPIY=ECI','GBPCOM=ECI','GBPCOY=ECI','GBPSNX=ECI','GBPSNB=ECI','GBPSCR=ECI','GBRAST=ECI','GBRSL=ECI','GBRSX=ECI','GBRSLY=ECI','GBRSXY=ECI','GBRHPM=ECI','GBRHPY=ECI','GBRICS=ECI','GBSTE=ECI','BECARM=ECI','BECARY=ECI','BECONC=ECI','BECPI=ECI','BECPIY=ECI','BEGDP=ECI','BELEAD=ECI','BEGDPR=ECI','BEIPSO=ECI'] fields_list = ['TR.IndicatorName','TR.IndicatorType','TR.IndicatorSource', 'PROD_PERM','DSPLY_NAME','TRDPRC_1','HIGH_1','LOW_1','CURRENCY','TRADE_DATE','OPEN_PRC'] df = ld.get_data( universe=rics, fields=fields_list ) display(df)
Here's the output
so from sheet 'Econ' in the Excel file you attached, the parameters used in ld.get_data() function are