Hi I currently have the following code that is fetching specific new articles using Python API. However I am not sure how to add the story text to the output. I currently have the Headline, StoryId, and Link to the article. Code: df = ek.get_news_headlines( 'Topic:GB AND (SOURCE:CMPNY OR SOURCE:MCE OR SOURCE:GEN)',…
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…
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':…
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…
I am wondering whether it is possible to identify dual-listed stocks from Refinitiv. I am interested in dual listings (different to cross listings) where two entities enter into an equalization agreement and become dual-listed. There are two main types: Combined entities and separate entities. Combined entities refer to…
It looks like you're new here. Sign in or register to get started.