-
I can’t use my code outside CodeBook, do you know if it’s possible?
This is the ode I’m trying to run: import refinitiv.data as rd rd.open_session() df = rd.get_history(universe =['aUSCPIAR','pUSCPI=M'], start='2025-06-01', end='2026-05-01') df.sort_index(ascending=False)
-
Daily Historical Rate for all Exchange Currency for USD via Jupyter Notebook
We are extracting all of the Exchange rate - Daily for all currencies paired with with USD. Timeframe requirement would be 20 to 40 years. Please see attached excel file extracted using Workspace Excel Add-in. This is only limited to one year time range due to limitations. but we are looking for a samples API script that…
-
Pricing a bond with a modified yield curve
Hello, I have downloaded the yield curve of a bond benchmark using the following import refinitiv.data.eikon as ek curve = ek.get_data('0#ITXZ=R',['MATUR_DATE','PRIMACT_1']) Then I modify the yield curve by applying a parallel shift of 25bp via: curve['Shifted_Rate'] = curve['PRIMACT_1ì] + 0.25 Now I want to reprice a bond…
-
Client is using Jupyter API
I'm not able to download date using this code. This was possible a couple of months ago. importrefinitiv.data as rd rd.open_session() st="JPUSTOSR21M=TTKL" dt1="2025-07-06" dt2="2025-07-09" start_dt = dt1 +"T00:00:00" end_dt = dt2 +"T20:59:59" df =rd.get_history(st, fields=['BID','ASK'], interval="tick", start =start_dt,…
-
Jupyter notebook on Codebook
Hi Dev Team, I would like to receive an updated Jupyter notebook on Codebook for bonds whereby I can extract the historical price and yield with the associate events. Thank you for your assistance.
-
Defining a currency when looking at historical price data
Hi, I'm trying to look at various stocks over the past 10 years. I have several stocks that are non-USD. How can I amend the following query to return the USD version of TRDPRC1: ld.open_session() response = historical_pricing.summaries.Definition( universe = ['AAPL.O', 'SHEL.L''], interval =…
-
How to use symbol_conversion.Definition for a specific date?
I'm using the following to convert from ISIN to RIC: ld.open_session() response = symbol_conversion.Definition(symbols = ['TH8319010Z06'], from_symbol_type = symbol_conversion.SymbolTypes.ISIN, to_symbol_types = symbol_conversion.SymbolTypes.RIC, asset_class = symbol_conversion.AssetClass.EQUITIES, ).get_data() eikon_map =…
-
An error occurred while requesting URL('http://local host:9060/api/handshake'). RemoteProtocolError(
Dear Team, I am using Python API and an issue arises when I connect to Eikon import refinitiv.data as rd rd.get_config()["http.request-timeout"] = 60 An error occurred while requesting URL('http://local host:9060/api/handshake'). RemoteProtocolError('Server disconnected without sending a response.') I have referred to this…
-
Jupyter Notebook Errors
The Jupyter Notebook is running on the Refinitiv server side. Jupyter is not even installed locally and never has been, yet CODEBOOK was working fine on the machine up to a few days ago. This also does not explain the errors with permission or authorization. Here are the errors I'm seeing: 403: Forbidden The error was:…
-
RDError: Error code -1 | The access to fields(s) denied.
Hi Team, I'm assisting User regarding an error in API. I'm suspecting this is permission issue but would need further explanation on seeing inconsistencies when using a 'desktop' session. The client is accessing the refinitiv API through a platform session. When she try and pull data on managed funds and ETFs I receive a…
-
ReadTimeouts when Running In .py file and not in Jupyter Notebook
Hi everyone, When I run the following requests in the syntax that you see below , in a Jupyter Notebook, the requests do not timeout, however, if this is run from a Python file, I see that it is more prone to ReadTimeout errors. Is there a way that I can go about fixing this error, and know why this is occurring? tasks =…
-
Corporate Bonds: Retrieving Dates of Coupons paid this year, and other bond data
Hi everyone, I have 2 questions regarding the retrieval of Corporate Bond data with the Refinitiv Data Library in Python. I am currently trying to retrieve the coupon rate, next payment date, and coupon payment frequency, with the following formulae: 'TR.CouponRate','TR.FiNextPayDate','TR.FiCouponFrequency' I checked that…
-
How to efficiently and briskly retrieve datapoints for all SNP 500 RICs
Hi everyone, I am trying to retrieve some Fundamental and Reference data for all of the SNP 500 stocks. These datapoints include values such as Income before Extraordinary Items, EBIT, Capital, etc. Now, I am trying to asynchronously retrieve all of this data. At first, I tried to loop ethrough the list of the RICs of the…
-
Certain Refinitiv Data requests work individually, but not concurrently (Python)
Hi everyone, I have an issue regarding concurrency with functions using get_data(). My workflow is as such where I have multiple requests of get_data() and get_history() in different asyncrhonous functions that I am executing concurrently using Python's `asyncio` library. Now, the issue is, when these functions are…
-
ReadTimeout on simple requests
I'm just getting started with the Refinitiv Data Library and trying to go through some of the examples contained here: https://github.com/LSEG-API-Samples/Example.DataLibrary.Python/blob/main/Examples/2-Content/2.04-ESG/EX-2.04.01-ESG.ipynb However, I get stuck on even the most basic ones like: response =…