-
lseg.data python library
I would like to get data information of an instrument by using the lseg.data python library I tried to use the library lseg.data.content.symbol_conversion, but it seemed that I don't have access to a scope to use this endpoint (trapi.search.lookup.read) So I tried to requested directly by using the endpoint,…
-
Not able to close the Price Feed from stream.close function
Hi , Im using the Lseg Data Library ( ld.content.pricing.Definition ) for fetching the Price feed . When closing the stream using stream.close() statement ….i even put a pause of 5 seconds before calling stream.close ….the feed is not getting closed ..and getting following error in console : Traceback (most recent call…
-
Please find the below question from client where client has all delayed permission.
I'm trying to pull data for the following tickers: FACTOR_LIST = ['<.NSEI>', '<.NISM250>', '<.NV20>', '<.NIFMOM>', '<OIL>'] But I only get results for the first 2. This is my code: def get_lseg_data(self, factor_or_model_or_bench: str): """ Pulls all portfolio market data from server. Use 'ticker' or 'factor' or…
-
Not able to close Lseg Price Feed ..getting error
Hi , Im using Lseg Library function ( ld.content.pricing.Definition ) for getting price feed …When closing the stream using stream.close() statement ….i even put a pause of 5 seconds before calling stream.close ….the feed is not getting closed ..and getting following error in console : Traceback (most recent call…
-
Historical Federal Funds Futures Data via Eikon API
Hey, I want to access historical Federal Funds Futures data for every month from 2025 to 2000 as tick data via the eikon API in Python. I don't know why, but every RICs Code I have tried does not seem to work. I also can't find historical data on Workspace itself which seems to be somewhat consistent in its RICs Codes and…
-
Pull Subsidiary Data Accurately Using lseg-data (TR.RelatedOrg Fields Misaligned and Incomplete)
Hi all, I'm currently working with the lseg-data Python SDK (v2.1.1) in a local refinitv Anaconda environment using a Desktop Workspace session. My objective is to extract a full and accurate list of a company’s subsidiaries, along with relevant identifiers and relationship types. I attempted to retrieve related…
-
How to use rdp.session.platform.Definition with RDP Password in refinitiv-data v1.6.2?
Hi Refinitiv Developer Community, I'm trying to authenticate to the Refinitiv Data Platform using the refinitiv-data Python library, specifically version 1.6.2. My environment is Python 3.12 running on Ubuntu. My goal is to establish a platform session using my RDP credentials (App Key, RDP Username [which is a Machine ID…
-
lseg-data and refinitv-data discrepancy
I'd like to pull the last trade price using lseg-data for a commodity. After speaking to support through the platform, I was given the suggestion to ask on the forums. How can I replicate the same results from the picture above with lseg-data?
-
SPX and crash observations
I want to recreate the following chart and table. The picture shows drawdowns of the S&P 500 index from 2019 to 2022 that are equal to or greater than five percent. I am unable to locate them because I do not fully understand the methodology used to calculate them. Do you have any suggestions on how to implement this in…
-
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':…
-
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…
-
Different result between rdp API with workspace app and using config file.
Hi all, We are currently building out an application that is using the Refinitiv RDP API to retrieve information. We have found two ways of connecting to the API : We can just open a session using rd.open_session(), when running code locally with the Refinitiv workspace open We can specify a config file containing our API…
-
Question about getting bid ask of Isincodes by Codebook V2
I use the code below to get bid ask by codebook. My code is working but cannnot get the data whose isincode starts from JP. Could you tell me the reason if possible. import pandas as pd import lseg.data as ld from lseg.data.content import symbol_conversion ------------------------ 設定 ------------------------EXCEL_IN =…
-
I want to extract the period end dates for a universe where both Local and ADR coverage exist.
ld.get_history( universe=['4295867372'], fields=['TR.F.PeriodEndDate'], start="2000-01-01", end="2030-01-01", parameters={'FRQ': 'FQ', 'Period': 'FQ0'} ) However, this code does not extract all the quarter-end dates. Specifically, it fails to retrieve the date '29.03.2025'."
-
Replicate Workspace App output via API
Dear community, Is it possible to replicate output given by specific apps of workspace through the API? For instance, I would like to replicate/obtain the following in python: MSFT.O SFDR cpurl://apps.cp./Apps/Corp/?s=MSFT.O&st=RIC&view=sfdr#/Apps/EnvtSocGov This means that at the end of my request I would like to have a…