Where can I extract such event information for a given RIC using python APIs?
Hi,
The ETF C090.DE "Lyxor Bloomberg Eq-weight Commod ex-Agr UCITS ETF" is being merged with LYTR.DE "Amundi Blbrg Equlwght Commdt ex-Agricl UCITS ETF A". Where can I extract such event information for a given RIC using python APIs?
Will be grateful if this issue could be addressed as soon as possible. Since it is an urgent case I would appreciate if you could take this up at your end . Thanks
cc: @siddharth.marya
Best Answer
-
@siddharth.marya OK great they got back to you - so this is a news query expression and to get this in Python do the following using our Refinitiv Data Library - examples are available in CodeBook Examplees notebook:
import refinitiv-data as rd
rd.open_session()
rd.news.get_headlines(query="Topic:MRG AND Topic:ETF",count=1000)
I was not able to get the query working with what they told you as Source:ETFDAI i don't think is available by API (not all news sources are delivered via the API) - but I replaced it with an Topic:ETF and was able to get some merger etc info for ETFs. You can play with the search query in the NEWS monitor app. I hope this can help.
0
Answers
-
We can only help with technical questions on this developers forum. For questions related to content, please open a support ticket at my.refinitiv.com, where you will get an authoritative answer from a content expert.
0 -
@jeane.samson.refinitiv Thanks for your question. So we can do this for companies but I don't think its possible for funds - this is the code for names:
df = rd.get_data('ABDN.L',['TR.FormerlyKnownAsName.effectiveFromDateTime',
'TR.FormerlyKnownAsName.effectiveToDateTime',
'TR.FormerlyKnownAsName'])
dfFor other Events:
events_df = rd.get_data('ABDN.L',['TR.EventStartDate','TR.EventType','TR.EventTitle'],{'SDate':'2015-01-01', 'EDate':'2022-02-27', 'EventType':'ALL'})
events_df.head(100)Unfortunately - this information does not appear to be available for funds - as Gurpreet suggested maybe good to ask content team. I hope this can help.
0 -
Hi @Gurpreet , @jason.ramchandani01 , @jeane.samson.refinitiv ,
Refinitiv content team has shared that I can look up this type of info using Source:ETFDAI AND Topic:MRG, please see below screenshot. How can I extract these using Python API?
0 -
0
-
I also got another response "After working closely with our Product Specialist, they confirmed that the ETF Daily News cannot be used as a source in Python API, some others like GLFILE or DJN or RTRS works, but ETFDAI No."
How can I get these for my particular ETF C090.DE?
0 -
0
-
@siddharth.marya So I tried this query 'Topic:MRG AND R:C090.DE^B23' and 'Topic:MRG AND R:C090.DE' but both return nothing - it seems this fund was delisted - I am not sure that what happens after delisting - whether they remove news etc this you can follow up with the content team. From our side I don't think we can offer much more in the way of help here. I hope this can help.
0 -
@jason.ramchandani01 Can you please tell me how can I get the fields GLFILE or DJN or RTRS for an ETF with the API? for example for LYTR.DE
0 -
@jason.ramchandani01Hello
Could you please help with this follow up question?
0 -
@siddharth.marya So those are not fields - they are sources of news - and you can get them by building a news query in the NEWS monitor app and double clicking to get the query string and then copying that query string into the get_news_headlines api call. For more information on this process see this article.
import refinitiv.data.eikon as ek
ek.set_app_key('DEFAULT_CODE_BOOK_APP_KEY')ek.get_news_headlines(query = '( Source:GLFILE OR Source:DJN OR Source:RTRS ) AND R:LYTR.DE', count=100)
this returns one result:
which is the same as in the NEWS monitor:
I hope this is clear enough and can help.
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 33 Data Model Discovery
- 682 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.8K Refinitiv Data Platform
- 622 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 83 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛