We're streaming LSEG data using the LSEG Data Library for Python, using lseg.data.content.pricing. Sometimes— seemingly at random (different times of day, sometimes after streams have been up for hours, other times after just minutes), we receive Stream.on_status events with the following (example) payload: status: {'ID':…
Hello, In my backend, I open a session to connect to LSEG data library API and have the lseg_data.config.json configured so that it uses the LDP platform to open the session. However, when I start my application, I get a "ValueError: Session is not opened. Can't send any request". I have to then open up LSEG Desktop…
Is there a way to retrieve the FX conversion rates, specifically the ones used in the DIB parameters? We would need both PeriodEnd and PeriodAvg. If they can’t be pulled directly, could you share the methodology (if possible) so we can calculate PeriodAvg ourselves — and clarify whether these are official ECB exchange…
What I want is to download the data for 3K ISINs. That can be done using Python.if I use python I don't get auto-imputed data. Below is the Python code client is refering import refinitiv.data as rdfrom tqdm import tqdmfor isin in tqdm(isins):try:response =…
I'm trying to switch on an API, but it seems like the codes i was using in the internal Refinitv codebook app (even simple lines like: import refinitiv.data as rd import refinitiv.data as rd rd.open_session() df = rd.get_data( universe = ['AAPL.O'], fields = ['CF_CLOSE'] ) display(df) ) don't seem to work in the API. Do…
I used to get index changes in the SPX using the following code: index_changes = rd.get_data(universe = index_ric,fields = ["TR.IndexJLConstituentRIC.date", "TR.IndexJLConstituentRIC","TR.IndexJLConstituentName", "TR.IndexJLConstituentRIC.change"],parameters={"SDATE": init_date,"EDATE": end_date, 'IC':'B'}) As of…
Trying to pull data by Worksapce API (LSEG Data Libarry, desktop session) returns "Attempting data request…Company Common Name" and close the session before getting data data as attached Please advise what is wrong.
This is my first part of script that should retrieve the latest data? cell 1 import lseg.data as ldld.open_session(app_key="app-key").open() cell 2 from lseg.data.content import historical_pricing as hp from datetime import date import os 1. Correct RIC for total commercial crude stockscrude_rics = ["C-STK-T-EIA"] 2. Date…
I am always encountering a timeout error when running this code: # Define the start and end dates (go two years by two years) start_date = '2025-01-01' end_date = '2025-06-30' # Generate a list of dates between the start and end dates date_range = pd.date_range(start=start_date, end=end_date) # Convert to a list of strings…
It looks like you're new here. Sign in or register to get started.