TLAC Eligibility field not returning
I am looking at bonds to determine their TLAC eligibility using the Eikon data api with python. Please find my code attached as a file and see a screenshot run:
unfortunately I am not able to attach the .ipynb file, but see a text copy of it below:
#!/usr/bin/env python
# coding: utf-8
# In[1]:
import refinitiv.dataplatform as rdp
import refinitiv.dataplatform.eikon as ek
# with or without debug logging
# rdp.logging.basicConfig(level=1)
rdp_session = rdp.open_desktop_session('secret')
#rdp.get_search_metadata(view = rdp.SearchViews.GovCorpInstruments)
# In[2]:
short_ric_list = ['CH237459601=']
# In[3]:
short_fields_list = [
'TR.IsTLACEligble',
'TR.CommonName',
'TR.RIC',]
# In[4]:
short_ric_info, err = ek.get_data(short_ric_list, fields=short_fields_list)
# In[5]:
err
# In[6]:
short_ric_info
what comes back:
Instrument|Company Common Name|RIC
0CH237459601=|UBS Group AG|CH237459601=
what I expect should come back:
Instrument|IsTLACEligible|Company Common Name|RIC
0CH237459601=|Y|UBS Group AG|CH237459601=
Tagged:
0
Best Answer
-
There's a typo on the code, 'i' was missing from the field name, please try the code below
short_ric_list = ['CH237459601=']
short_fields_list = [
'TR.IsTLACEligible',
'TR.CommonName',
'TR.RIC',]
short_ric_info, err = ek.get_data(short_ric_list, fields=short_fields_list)
short_ric_infoFYI, to use the Eikon library, instead of the open RDP desktop session
rdp_session = rdp.open_desktop_session('secret')
Eikon set app key function can be also used
ek.set_app_key('secret')
1
Answers
-
@henrik.karlsson So there is a typo in your fieldname:
df,err = ek.get_data('CH237459601=',['TR.IsTLACEligible','TR.CommonName'])
dfis working. I hope this can help.
1 -
Thank you
@raksina.samasiri and
@jason.ramchandani01 - after correcting the typo it works! Your help is much appreciated and sorry for not spotting the error myself.1
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 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
- 370 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛