-
Python code for 3K ISIN
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 =…
-
Stream timeouts on websocket under python lseg.data API
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':…
-
Please can you explain why there is a lag on receiving EIA stats data via a script i have written?
Hi team, I am posting on behalf of an external client for the query below, please help and prioritize: Please can you explain why there is a lag on receiving EIA stats data via a script i have written using the appkey? from lseg.data.content import historical_pricing as hp from datetime import date import os 1. Correct RIC…
-
how to filter news article by its source, language through Python?
-
Retrieve weekly eia inventory data to update my csv directly
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…
-
Client is facing the issue while running these code
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…
-
Could you please try running the code below on your end to see if the same issue occurs?
Hi Team, Client have raised the below query. Could you please assist on the request. Query: May I ask you to try my code on your side, and see if the bug appears for you as well? It seems from your explanation that RDP is a more reliable backend platform. Why does this bug appear there then? My code again, for your…
-
Current sales, Net margin and wages or labour costs' and need to add to the field TRDPRC_1 with the
Current sales, Net margin and wages or labour costs' and need to add to the field TRDPRC_1 with the correct RIC I would like to download the 'current sales' , 'net margin' and eventually 'wages' or 'labor costs' and need to add to the field TRDPRC_1 with the correct RIC, wchich i do not find in the DIB ... can you and your…
-
App key is incorrect
I am getting this error. I've tried using a new API key but it isn't being resolved: 2025-08-05 11:51:37,203 P[50440] [MainThread 14636] Error on handshake url http://127.0.0.1:9000/api/handshake : EikonError(1, 'Status code 400: App key is incorrect')
-
pip install DatastreamPy not working
I'm getting error messages when trying to pip install DatastreamPy Please see attached screen shot Can you help please? thanks
-
Need API code to extract 'total sales', current and 12m forward, Net Margin, profits forward 12m, of
Hello, Need API code to extract 'total sales', current and 12m forward, Net Margin, profits forward 12m, of SP500 and STOXX600, and Total Labor cost, ideally for the two equity indexes, if not at country level?". I started the way below but does not work. May be you can correct it pls, takes probably a few seconds for you…
-
Codebook App 30 min time frame
i have a question regarding LSEG Workspace as specially the Code Book App. I want to get historic data of an instrument e.g. LSEG.L for the fields BID, ASK and VOLUME on an 30 min time frame. In Excel it is possible to get the data via the Workspace Add-In. But in the Workspace Codebook App I don’t get the VOLUME data. How…
-
Importing Deal Screener
Hi! I am trying to access M&A data via a Python App but I'm getting an error importing the Deals Screener. This is my attempt: import refinitiv.data as rd from refinitiv.data.discovery import search from refinitiv.data.content import deals import pandas as pd rd.open_session(app_key="APP KEU") screener = deals.Screener()…
-
Python DSS API extraction is giving be below error as malformed
Code def get_rics(token): url=f"{BASE_URL}/Extractions/ExtractWithNotes" headers={"Content-Type":"application/json","Authorization":f"Token{token}" } payload = {"ExtractionRequest":{ "@odata .type": "#DataScope.Select.Api.Extractions.ExtractionRequests.InstrumentsListExtractionRequest", "ContentFieldNames":…
-
Different results for same code
Hi team, df = ld.get_data('CK25^2', fields = [f'TR.SETTLEMENTPRICE(SDate={"2025-1-3"})'] ) also, if i run it again it returns correct results any solutions for this? Many thanks!