-
lseg get_data() randomly missing data
Another problem: sometimes, for some requests the server returns empty values. If I rerun the query for the symbol with missing data, I get a correct response. This is an example of a relatively big query, so I will post only the logs: Request with 100 RICs: json = {'Entity': {'E': 'DataGrid_StandardAsync', 'W':…
-
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?"
-
Eikon Python Data API migration to lseg-data. get_history() partialy missing data
It seems like I found another bug in get_history(). This is the query for ticks for some time range. The problem is - the more RICs I provide as 'universe' parameter, the more missing ticks are in the response. 2 RICs in the query. All ticks are present. The first tick for ALSEA has Volume = 2675. 4 RICs in the query.…
-
get_history() ticks, filtering by EVENT_TYPE
Migrating from get_timeseries() to get_history() get_timeseries() - automatically filters out some ticks, but get_history() returns everything + EVENT_TYPE field. Is there a way to modify the query so it filters out the ticks with certain event types? For example below, get_timeseries() does NOT return the ticks with…
-
Eikon Python Data API migration to lseg-data. get_data() data mismatch
-
Issue with datetime64 Conversion in Eikon API – Assistance Required
Hello Eikon Developer Team, I am encountering an issue when using the ek.get_news_headlines() function in the Eikon API. Recently, when fetching news headlines in my project, the following traceback error has started to occur: Traceback (most recent call last): File "main_8.py", line [105], in <module> df_new =…
-
Filing API returns error message "User did not have entitlements to the field".
Hello, when I tried to get filing data with Python Filing API, I only get NAs and above error message. I was able to download full correct data using ADVFIL function on LSEG WORKSPACE desktop app. However, I need to acquire filing data for over 3,000 firms. I cannot download all of it manually. Here is my code:…
-
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…
-
Why is the fperiod not properly aligned with the values?
I'm having problem when downloading financial income data. For this example in the code below, the "Financial Period Absolute" (fperiod) is not properly aligned with the true financial data. We can see that on "TR.F.OperProflnOpCASR | XEBT", there are 2 values on FY2024Q4, but it should be one value for FY2024Q4 and…
-
Reproducibility issues when applying screener app in Eikon API (filters = country of HQ + total rev)
Hello, I am using the eikon API with python in a jupyter notebook. Within this, I am having reproducibility issues with the screener function when I screen for US companies with a 250M USD minimum total revenue. I want to compare revenue values as a function of timepoint (to help me better understand the timepoint…
-
Error code 429 with LSEG-data Python API
I am getting this error when calling ld.news.get_headline lseg.data._errors.LDError: Error code 429 | Too many requests, please try again later. although this was working fine up until yesterday. I have already been waiting for about a day. Could you kindly help me understand what's going on?
-
inconsistency with get_history lseg api endpoint
I'm currently migrating a workflow from the legacy Eikon Python API to the new LSEG Data (RD) API, and I’ve encountered a couple of points that require clarification. In the Eikon API, I was using the get_timeseries() function with fields='CLOSE' to retrieve historical Euribor data for the following instruments:…
-
Multiple values returned from get_data
Hi, I've inherited some Python code that downloads debt seniority data. I'm running a test on a single security: df_pull_isin, error = ek.get_data(instruments = 'US404280EN53', fields = [ 'TR.NISeniorSubordinatedDebtIndicator.date','TR.NISeniorSubordinatedDebtIndicator.value']) returns output of the form 4414 US404280EN53…
-
Issue with rd.get_data - Server Connection Problem
Dear Support Team, I am experiencing issues with server connectivity when using rd.get_data in Python to retrieve data via API. Recently, I switched the library from Eikon to Refinitiv. While using rd.get_data, sometimes the function returns data immediately, but other times it takes a long time to respond and eventually…
-
We are getting a problem when we request data with the TR.FundYeartoYesterday Field in LSEG_DATA
Its is returning a datevalue. Here is the code to replicate error: """ import pandas as pd import numpy as np import lseg.data as ek ek.open_session() Fields= ['TR.FundYeartoYesterday'] Fundamentals= ek.get_data('LP68102841', Fields) ek.close_session() """ This is being replicated across all other instruments. Other fields…