-
I am getting Session not opened error while using refinitiv.data
I am trying to pull some reference data using refinitiv.data via python code but getting Errors: ValueError: Session is not opened. Can't send any request. Can you please help. Code: import refinitiv.data as rd from refinitiv.data.content import fundamental_and_reference platform_session = rd.session.platform.Definition(…
-
Deployed Host and DACS ID
I want to use the Python: How to configure the JSON file to ld.open_session('platform.rdp'). I attempted to create a platform session (platform.ldp), but I couldn't get it to work because I dont know my Deployed host and DACS ID - where can I get this? "sessions": { "default": "platform.ldp", "platform": { "ldp": {…
-
How do i get Quarter or Financial year as the Column header for the data?
ld.get_data(universe= [ "TRV", "ORI", "WRB", "BRO", ], fields= ['TR.F.NETPREMEARNED'], parameters= {"Scale":6,'Curn':"USD", 'FRQ':'FQ', 'Period':'FQ0', "SDate":0,"EDate":-5}) , This is the output i'm getting, I want column net premium as header and under sub header quarter or year, is it possible
-
lseg.data.content type conversions
When using lseg.data.content how can I control the type conversions occuring for response fields ? For example : import lseg.data as ld universe = ["/SOGN.PA"] fields = ["BID", "ASK", "CURRENCY", "RDN_EXCHID", "QUOTE_DATE", "QUOTIM", "QUOTIM_MS", "QUOTIM_NS"] stream = ld.content.pricing.Definition(universe = universe,…
-
NaT Issues and Duplicated Dates
I hope you are doing well. I am reaching out regarding some data inconsistencies I haveencountered while retrieving fundamental and market data for specific RICs using theRefinitiv API. I would appreciate your assistance in understanding these issues and findingpossible solutions.Issue 1: NaT Values for…
-
Why does my code not return any values? It works for other fields, for example TR.Price.Close
import pandas as pd import numpy as np import plotly.graph_objects as go import lseg.data as ld from plotly.offline import plot import cufflinks as cf # Cufflinks import configparser as cp import time all_data = [] for i in range(0, len(RICS), batch_size): batch = RICS[i:i + batch_size] data = ld.get_history(…
-
Using fundamental_and_reference leads to warning when <NA> values are in the result
I tried to get some data using lseg-data 2.0.1 with "fundamental_and_reference". The result obviously contains some <NA> values. I got the message: "FutureWarning: Downcasting object dtype arrays on .fillna, .ffill, .bfill is deprecated and will change in a future version. Call result.infer_objects(copy=False) instead. To…
-
Refinitiv Workspace Transcripts Download using Python
Hello, Is it possible to use Python to download all companys' earnings conference call transcripts through Refinitiv Workspace at once? Although I found that some answers said no, I just want to double-check whether it is updated. Thank you very much!
-
QPS Financial Contracts API - Service Unavailable
Hello, I ran into the following error today: {'error': {'id': '3a4945f9-f869-4b70-9108-c4022368608a', 'code': 'QpsCommon.ERROR_BACKEND_ACCESS_FAILURE', 'status': 'Service Unavailable', 'message': '[QpsDps] I/O error on POST request for "https://qps-dps-use1.int.refinitiv.com/pricing/prepare": Read timed out'}} My code was…
-
Time slot discrepancy between Eikon and Workspace
Hello, Our teams have recently migrated from using Eikon to using Workspace. Because of this our IT Tools also need to be updated to work with Workspace. Previously, we were using the ThomsonReuters.DataAccess library for C#. We had to migrate to LSEG.Data and LSEG.Data.Content (using a DesktopSession). Our scripts now run…