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.
1
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.
1 -
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 -
Hello @jason.ramchandani01
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.
2
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛