-
Getting latest data for continuous futures contracts
Using the lseg.data library, I would like to download the latest traded price TRDPRC_1 and settle price if available. I have access to historical data using ld.get_history() but mostly empty data sets using ld.get_data(). Can you confirm python script that should work for Cc1 and Sc1 and/or a way to see if our subscription…
-
Workspace API: unable to connect anymore
Unable to connect using Workspace API since a few days. Was working fine before. Logs when working: 13:22:27.094 [Info] Library version: 1.0.0-beta5 13:22:27.094 [Info] .Net runtime: 4.0.30319.42000 13:22:27.094 [Info] .Net version: 4.8.9290.0 13:22:27.116 [Info] Successfully loaded the Stream:[internal] configuration…
-
Pulling Cotton Continuous data
Hi I have this code, it doesn't pull the EXPIR_DATE and CRT_MNTH prior to 2021, please fix it import lseg.data as ld import pandas as pd ld.open_session() continuous_rics = [ "CTc1", "CTc2", "CTc3", "CTc4", "CTc5", "CTc6", "CTc7", "CTc8", "CTc9", "CTc10" ] df_continuous = ld.get_history(continuous_rics, 'EXPIR_DATE',…
-
Unable to retrieve TR.FiCountryName field with a platform session
Hi, I've run into an odd issue where I cannot run the following Python line below under a platform session. Time series values and other fields such as TR.InstrumentDescription work fine. Permissions team says permissions are correct. rd.get_data( [ 'US10YT=RR', 'CA10YT=RR', 'GB10YT=RR', 'DE10YT=RR', 'EU10YT=RR',…
-
Calculation of FX Forward start date and Maturity date
Hello friend, I'm using Workspace Codebook to calculate FX forward start date and maturity date. I remembered that we have adfin function is something like FxCalcPeriod() to get the Maturity Date of FX forward if I provide the currency pairs, Start Date, and Tenor as input. Do we have a similar script for Codebook? Thanks…
-
API Related Query
Hi Team, please can you answer the below questions from my client. I have a couple of questions on the recommended Python package and required credentials please. There are three Python packages available: https://pypi.org/project/refinitiv-data/ https://pypi.org/project/refinitiv-dataplatform/…
-
What's the variable name for Python data retrival that is equal to X(P)~E? I mean, how do I get th
Whats the variable name for Python data retrival that is equal to X(P)~E? I mean, how do I get the same price, taking as a base the Excel file How can I get all in euro? final_prices = rd.get_data( universe = try_codes, fields = ['TR.OPENPRICE.Date', 'TR.OPENPRICE', 'TR.CLOSEPRICE'], parameters = { 'SDate': '2025-01-01',…
-
How connect to LSEG Workspace using .NET API?
Hi, We support our internal .NET application written in VB.NET which currently uses Refinitiv Eikon version 4.0. Because of migration to LSEG Workspace from Eikon we try to modify our application which is using just a few functions from Eikon API: EikonDesktopDataAPI.Initialize() + EikonDesktopDataAPI.Status…
-
Setting collateral currency for swap pricing in Refinitiv Data Library for Python
Hi, I'm using swap from lseg.data.content.ipa.financial_contracts within the Refinitiv Data Library for Python. I would like to set a collateral currency like I can do in the SWPR app (see the screenshot). Is this possible? I can't find an arg for this in the documentation. Thanks
-
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 #…