-
Python Codebook Download Format
Hi Devportal, I have a few code on python codebook and looking to download as .py format no as .ipynb format. Please help me if you have any way to download it. Thank you.
-
Scheduled price extraction for currencies
Trying to extract scheduled price data for CNH and CNY identifiers , i was able to successfully extract EOD pricing for these identifiers but facing error when trying to extract the prices at specific time of day, please find below the API query details along with URL and error message Code from ayx import Alteryx import…
-
api pull data notification alerts on daily basis.
Hi Dev team good afternoon. Client raised a query: Can you please let me know if there is any api pull data notification alerts on daily basis. Is there anyone from LSEG development team to reach out or any link to refer. Thank you
-
DSS Intraday Price for CNH, CNY identifiers at 4:30 PM SGT not getting extracted
I tried setting up my code to get the price at 8:30 AM UTC but it doesnt seem to work, could you please help me with it Code token_url = "https://selectapi.datascope.refinitiv.com/RestApi/v1/Authentication/RequestToken" payload = "{\r\n "Credentials": {\r\n "Username": "9038135",\r\n "Password": "***********"\r\n }\r\n}"…
-
Adding story text to output using Python API
Hi I currently have the following code that is fetching specific new articles using Python API. However I am not sure how to add the story text to the output. I currently have the Headline, StoryId, and Link to the article. Code: df = ek.get_news_headlines( 'Topic:GB AND (SOURCE:CMPNY OR SOURCE:MCE OR SOURCE:GEN)',…
-
How can I use Python to access and analyze live news feeds from Refinitiv?
How can I use Python to access and analyze live news feeds from Refinitiv?
-
Using get_data() on an API (Not Codebook)
I'm trying to switch on an API, but it seems like the codes i was using in the internal Refinitv codebook app (even simple lines like: import refinitiv.data as rd import refinitiv.data as rd rd.open_session() df = rd.get_data( universe = ['AAPL.O'], fields = ['CF_CLOSE'] ) display(df) ) don't seem to work in the API. Do…
-
Were there recent changes to "TR.IndexJLConstituentRIC.date" and "TR.IndexJLConstituentRIC.change"?
I used to get index changes in the SPX using the following code: index_changes = rd.get_data(universe = index_ric,fields = ["TR.IndexJLConstituentRIC.date", "TR.IndexJLConstituentRIC","TR.IndexJLConstituentName", "TR.IndexJLConstituentRIC.change"],parameters={"SDATE": init_date,"EDATE": end_date, 'IC':'B'}) As of…
-
Raising query obo client
REMOVED Query : I am trying to use Python to download News stories for a given stock over the past 2 days. In the News montior I can see a few news stories for IDXX.OQ over the past 2 days but when I try either CODEBK or using Spyder it returns empty dataframes for this stock. I can upload screenshots of what is happening.…
-
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()…
-
Can't fetch stories for some storyid via lseg.data.news.get_story() python module
Dear Team , Facing issue with pulling stories for some storyids via python but these are visible when I navigate from workspace UI. Please guide me with this issue. I am appending below some example storyids for which I don't get any news stories. using following method to fetch: story = ld.news.get_story(str(storyid))…
-
What is the field name whether an ETF tracks an index or not?
I'm using the Python API. I'm looking to fetch a boolean whether ETF tracks an index or not. Tried ld.get_data(universe=['XLE'], fields=[ 'Index Tracking' ])
-
Is there a more efficient method to identify the necessary RIC Code to get Dividend Forecast
The initial Query is; Salesforce Case: 14975215 The following securities have Projected Dividends listed on the front end of the Workspace, however, they are not present in the Refinitiv API when we request them Instruments ADSGnDIVCF.F TURUDIVCF.L BASFnDIVCF.F BAYGnDIVCF.F BRKbDIVCF.U DTGGeDIVCF.F DTEGnDIVCF.F FREGDIVCF.F…
-
Is there a way using the LSEG API to pull company data based off of the Ticker and not the RIC?
Hi team, Is there a way using the LSEG API to pull company data based off of the Ticker and not the RIC? I tried doing it on my end using AAPL instead of AAPL.O and I encountered an error. import refinitiv.data as rd rd.open_session() df = rd.get_data( universe = ['AAPL'], fields = […
-
Obtaining Effective From and To Date Times for firms' former names
Hi, I am using the python module lseg-data to retrieve the former names of certain firms by using the following formula: import lseg.data as ld df = ld.get_data(universe=['4295904307'], fields=['TR.FormerlyKnownAsName']) While this code downloads the list of names, I was wondering if there is some way to access the…