Python: search directly by ISIN
Options

julie.osial
LSEG
I want to be able to search directly by ISIN, as I will start out with only the ISIN available in python and not the Equity RIC. Is there a way via python to figure out the RIC and other features based on solely the ISIN?
Tagged:
0
Answers
-
Thank you for reaching out to us.
You can use the LSEG Data Library for Python to retrieve RICs from ISINs.
There are several methods.
1.Use the get_data method
ld.get_data( universe = ["US4592001014","US30303M1027","US0231351067"], fields = ["TR.RIC"])
2. Use the symbol_conversion endpoint
response = symbol_conversion.Definition( symbols = ["US4592001014","US30303M1027","US0231351067"], from_symbol_type = symbol_conversion.SymbolTypes.ISIN, to_symbol_types = [symbol_conversion.SymbolTypes.RIC]).get_data() response.data.df
3. Use the search.lookup endpoint
symbols = ["US4592001014","US30303M1027","US0231351067"] response1 = search.lookup.Definition( view=search.Views.SEARCH_ALL, scope="ISIN", terms=",".join(symbols), select="RIC", ).get_data() response1.data.df
You can refer to the example code on GitHub.
0 -
Hello @julie.osial
You can use a Search feature on the
to find information you need.Example code:
import lseg.data as ld
from lseg.data.content import search
ld.open_session()
response = search.Definition(
view=search.Views.SEARCH_ALL,
select="ISIN,RIC,....",
filter="ISIN eq '<ISIN Code>'" ←- Set your ISIN here
).get_data()
response.data.dfYou can find a full example here.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 37 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 697 Datastream
- 1.5K DSS
- 632 Eikon COM
- 5.2K Eikon Data APIs
- 14 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 6 Trading API
- 2.9K Elektron
- 1.5K EMA
- 256 ETA
- 563 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 283 Open PermID
- 47 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 757 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
- 27 DACS Station
- 122 Open DACS
- 1.1K RFA
- 107 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 97 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛