Refinitiv ISIN into RIC search for Bond
Hi, there are a number of questions and answers on this topic though it appears nothing is consistent / simple. I am accessing refinitiv data library via a workspace access
The tutorial sugges the below to retrieve a RIC from an ISIN....
import refinitiv.data as rd
from refinitiv.data.content import symbol_conversion
# Symbol types:
# - symbol_conversion.RIC => RIC
# - symbol_conversion.ISIN => IssueISIN
# - symbol_conversion.CUSIP => CUSIP
# - symbol_conversion.SEDOL => SEDOL
# - symbol_conversion.TICKER_SYMBOL => TickerSymbol
# - symbol_conversion.OA_PERM_ID => IssuerOAPermID
# - symbol_conversion.LIPPER_ID => FundClassLipperID
response = symbol_conversion.Definition(
symbols=["AU3TB0000150"],
from_symbol_type=symbol_conversion.SymbolTypes.ISIN,
to_symbol_types=[
symbol_conversion.SymbolTypes.RIC,
symbol_conversion.SymbolTypes.OA_PERM_ID
],
).get_data()
response.data.df
This returns the below Error.
File c:xxxxxxxxxx\lib\site-packages\refinitiv\data\delivery\_data\_data_provider_layer.py:126, in DataProviderLayer._check_response(self, response, config)
125 def _check_response(self, response: Response, config):
--> 126 _check_response(response, config)
File c:xxxxxxx\lib\site-packages\refinitiv\data\delivery\_data\_data_provider_layer.py:33, in _check_response(response, config, response_class)
30 error = RDError(error_code, error_message)
32 error.response = response
---> 33 raise error
RDError: Error code 404 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Not Found</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Not Found</h2>
<hr><p>HTTP Error 404. The requested resource is not found.</p>
</BODY></HTML>
any direction appreciated.
Best Answer
-
I checked and found that when using the symbol_conversion.Definition function, it uses the provided ISIN as an issue ISIN. Therefore, it returns AU3SG000137=2M.
The following shows the search result for RIC (AU3SG000137=2M).
response = search.Definition(
filter="RIC eq 'AU3SG000137=2M'",
select="BusinessEntity,DocumentTitle,ISIN,IssueISIN,RIC,IssueDate,Currency,FaceIssuedTotal,CouponRate,MaturityDate",
top = 100
).get_data()
response.data.dfIf I used the search.Definition function to search for ISIN: AU3SG0001373, it returns AUN04000526=.
response = search.Definition(
filter="ISIN eq 'AU3SG0001373'",
select="BusinessEntity,DocumentTitle,ISIN,IssueISIN,RIC,IssueDate,Currency,FaceIssuedTotal,CouponRate,MaturityDate",
top = 100
).get_data()
response.data.dfHowever, If I used the search.Definition function to search for IssueISIN: AU3SG0001373, it returns a lot of RICs.
response = search.Definition(
filter="IssueISIN eq 'AU3SG0001373'",
select="BusinessEntity,DocumentTitle,ISIN,IssueISIN,RIC,IssueDate,Currency,FaceIssuedTotal,CouponRate,MaturityDate",
top = 100
).get_data()
response.data.df0
Answers
-
Thank you for reaching out to us.
I can run the code properly.
config = rd.get_config()
config.set_param("logs.transports.file.enabled", True)
config.set_param("logs.transports.file.name", "refinitiv-data-lib.log")
config.set_param("logs.level", "debug")
config.set_param("http.request-timeout", 60)
rd.open_session()
response = symbol_conversion.Definition(
symbols=["AU3TB0000150"],
from_symbol_type=symbol_conversion.SymbolTypes.ISIN,
to_symbol_types=[
symbol_conversion.SymbolTypes.RIC,
symbol_conversion.SymbolTypes.OA_PERM_ID
],
).get_data()
response.data.dfThe output is:
You may need to enable the debug log in the library, as shown above, to verify what the problem is.
Please share the log file (refinitiv-data-lib.log) when the problem occurred. It could be a network proxy or firewall issue.
0 -
Hello @thomasbanfield
What is the Data library version that you are using? Which session (RDP or desktop) that you are using?
I tested the Data library version 1.4.0 and 1.5.1 (latest version) and it works fine on my end for both RDP and Desktop sessions.
Result for version 1.4.0 on CodeBook
Result for version 1.5.1
0 -
HI @wasin.w and @Jirapongse , thanks for the responses. in the process of enabling the logs i have managed to get the result as you both have also. So i guess consider this case solved. Perhaps there was an issue with my session or something local.
I am using RD version 1.5.1
Thanks again for the help.0 -
HI @wasin.w and @Jirapongse, if you do know how to answer this one, my reading suggests that you need to RIC to call pricing, to get the RIC we can convert from ISIN (the TR. function was used in excel itself)
in the result for the symbol conversion, the RIC is inconsistent.
When i use the searchresponse = search.Definition(
query="AU3CB0266484",
select="ISIN,RIC,IssueDate,Currency,FaceIssuedTotal,CouponRate,MaturityDate",
).get_data()
print(response.data.df.to_string())
I receive :ISIN RIC IssueDate Currency FaceIssuedTotal CouponRate MaturityDate
0 AU3CB0266484 AUN01000224= 2019-09-12 AUD 7010350000 1 2024-02-08but as you note above, the RIC is represented by
DocumentTitleRICIssuerOAPermID
AU3SG0001373New South Wales Treasury Corp, Bond Quote, NSW...AU3SG000137=2M4296044901Do you know why the inconsistency ?
The end goal is to value a portfolio where the reference available is the ISIN.
Thanks again
0 -
The output is:
0
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 中文论坛