-
Extract only breaking news via get_news_headline
I am looking for a way to use the get_news_headlines function within a python script via the Eikon/LSEG-Data API, in a way that the query will only return results which are classified as breaking news, such as the example in the attached screenshot. Currently my function call looks like this:…
-
What is JIT conflation (RTO) and Time conflation (RTMDS WebSocket)
Our client is currently having an app based on Python that consumes RT data. They are currently using RTO which is maximum of 3 updates per second for quotes. Going forward they will use the same application to connect to RTMDS via WebSocket (300ms Conflated Service). Both RTO and RTMDS WebSocket are conflated service.…
-
I need to retrieve the financial period end dates from the income statement using Python.
My current code workspace_df = ld.get_history( universe=str(org_id), fields=['TR.Revenue', 'TR.F.Source', 'TR.F.PeriodEndDate'], start="2000-01-01", end="2050-01-01" ) However, this only returns annual period data. How can I modify the parameters to include quarterly period as well?"
-
Questions regarding the fiscal year
Currently, we use the Python API and ld.get_data() to extract fundamental and ESG data of several companies over time. We want to make sure that the date variables we are using in both requests (see below) correspond to the last day of the company’s business year so that we can interprete both datasets on a fiscal year…
-
How to get update time when using get_history in API
I am using the ‘get_history’ function from the lseg.data library in Python to fetch data. Is there any way for me to also retrieve the update time for each data entry along with the data when using ‘get_history’? Below did not work: ``` python with ld.open_session() as session:…
-
lseg-data library prints Python warnings
When I do something that involves timestamps, like : The last line prints this warning: LSEG-data.venv\Lib\site-packages\lseg\data_tools_dataframe.py:177:FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False)…
-
first time user - please help with the following
I am trying to pull data from Refinitiv using Python via an API key. Normally, I use an Excel add-on, but this time, the data I need requires a lot of iterations, so I had to revert to Python with the help of Chatgpt, although I am not confident using it. As expected, the code generated by Chatgpt doesn't work, and I…
-
Case 14545631: Why are we missing trade data for <.OQ> RICs?
Hi Team - I have download the Raw data for 28 Feb 2025 but in manifest file we can see the data is download. After download the I unzip the using command.. gunzip trth_20250228_eod.gz after unzip the command, I run the below command onetick@tstcapp008:/apps/OMD/raw_data/equity_tr/eod_raw> cat trth_20250228_eod | grep -i…
-
Are there any new methods on pulling expired options data?
Hello! I am currently utilizing an updated version of script functions posted below to obtain valid RIC codes for expired options data. Since this method is much more costly compared to pulling active options from existing chain codes, do any new techniques exist for finding expired options RIC codes? I will appreciate any…
-
Using Getdata function to Get CUSIP based on RIC
Hello! Sorry, I need to change a bit about my question. When I was using Getdata function in Refinitiv Workspace API, I used RIC to get CUSIP (and I set the parameter: 'SDate' and 'EDate', I tried to make they are the same day to get the certain day's data). However, most of the transfer is right, some of the CUSIP I got…
-
rdp Error400 Bad Request for Vol Surface data quantitative-analytics-curves-and-surfaces
Hi All, I am unable to retrieve data, I get error 400 "Bad Request". Here is my request: RESOURCE_ENDPOINT = "https://api.refinitiv.com/data/quantitative-analytics-curves-and-surfaces/v1/surfaces" requestData = { "outputs": ["Data"], "universe": [ { "surfaceTag": "Example Vol Surface", "underlyingType": "Eti",…
-
How to retrieve bond rating and sector credit curve data - using Python API
Hello, I have a datasheet with a list of bond ISINs for which I have a start date, end date, the sector classification, currency and rating information. For each bons in the dataset I would like to retrieve the currency-sector-rating specific credit yield curve starting at its specific start and end date. I am facing the…
-
Cotton Continuation contracts pulling CRT_MNTH and EXPIR_DATE
Hi, I have code below http://import lseg.data as ld import pandas as pd import time from datetime import datetime, timedelta from dateutil.relativedelta import relativedelta # ------------------------------------------------------------------------------ # 1. Open LSEG Data session #…
-
RIC check in my list for Workspace Codebook
Hello Friend, I'm using Workspace Codebook LSGE data API. I have a list of RICs but I always get some errors like "the universe is not found", which, after I throughly check, is due to one or more invalid RIC in my list eg. BRL3Y=. Would you kindly advise is there any quick way to get out to me which RIC is invalid in my…
-
TEXTUAL ANALYSIS PYTHON
Hello everyone! I would like to understand how to obtain the headlines of all companies, for example, U.S. companies, on Python by inserting keywords, from 2020 to today. The code I used only works with 100 rows. Thank you!