-
Python news sample jupyter notebook 'Missing scopes: {'trapi.data.news.read'}'
Hi, I am trying to use the python news sample jupyter notebook, but after connecting I getting this error 'Missing scopes: {'trapi.data.news.read'}' Can you tell me how to add the scope so the sample works please? thanks, Adrian
-
Issues with rd.open_session (python API)
hey guys, I'm trying to run the following lines: import refinitiv.data as rd rd.open_session() trading_instrument = 'ESc1' prices = rd.get_history( universe = trading_instrument, fields=['TRDPRC_1'], start = "1997-01-01", end = "2024-07-31", ) prices = prices.loc[:,~prices.columns.duplicated()] prices and now I'm getting…
-
Refinitiv Data Library for Python: Call limits
Hello, I'm using the Refinitiv data library for python. In particular, I'm using the following functions and have been getting some errors for too many requests. For rd.discovery.search() and rd.get_history(), I've been getting: RDError: Error code 429 | Too many requests, please try again later. For rd.get_data(), I've…
-
Python refinitiv.data Screener not working
I have the following screener code in python ... import refinitiv.data as rd rd.open_session() syntax = ( 'SCREEN(' 'U(IN(Equity(active,public,primary))),' 'TR.CompanyMarketCap(Scale=6)>=300,' 'TR.F.NetDebtToEBITDA(Period=FY0)<=3,' 'NOT_IN(TR.GICSIndustryGroupCode,4010,4020,4030),' 'IN(TR.RegCountryCode,IN),'…
-
Internal server error while accessing refinitiv API
While accessing API sometimes we are getting below error * GatewayTimeout-Response status code does not indicate success: 504 (Gateway Timeout).' 2) Response status code does not indicate success: 500 (Internal Server Error). PFB request and response log errors in detail and timelines for point 2 and 3 as mentioned in…
-
Stream multiple chain request in RDP
Hello! I need to stream data for multiple chains in RDP. It seems that contrary to the Pricing stream where multiple RICs can be added using IPricingStream.AddItem(), IChainStream seem allowing only one RIC in the Definition while defining the stream. Is there a way to request multiple chain RICs on one stream? The need is…
-
rd.getHistory with Interval = tas and Conditions
I am trying to retrieve the 'CONDITIONS' data when calling rd_getHistory with the Time and Sales ("tas") interval for equity instruments: df = rd.get_history(universe, start = "2024-07-18T13:30:00.000", end = "2024-07-18T20:00:00.000", fields=["TRDPRC_1","TRDVOL_1","CONDITIONS"], interval = "tas") In Workspace if I display…
-
Setting start date for fxforward and is it possible to get the data of multiple tenors and fx for...
...ward at once fwd_contract = cross.Definition(fx_cross_code='GBPCNY', fx_cross_type='FxForward', legs = [cross.LegDefinition(start_date='2024-06-30T00:00:00Z', tenor='3M')]) response = fc.get_cross_analytics(fwd_contract, fields = ['StartDate', 'EndDate', 'FxSwapsCcy1Ccy2', 'FxOutrightCcy1Ccy2']) print(response.data.df)…
-
Symbol support with Workspace get_history
I am migrating a solution from Eikon to Workspace. Here is code to pull some daily bars: import sys import refinitiv.data as rd import pandas as pd import datetime rd.open_session(app_key =<>KEY) Symbol_T = sys.argv[1] Date_T = sys.argv[2] universe = [Symbol_T] df = rd.get_history(universe, end = Date_T,…
-
market cap in refinitiv data api where gui app has the right answer
hello when i query refintiiv data for the market cap TR.CompanyMarketCap for cusip: 117043109 i get back <NA> in refinitiv workspace DIB i see a real number here what is giong on?