get_data
This method sends a request to the Refinitiv Data Platform to retrieve the data described in the symbol_conversion.Definition object.
Module
refinitiv.data.content.symbol_conversion
Syntax
get_data(session, on_response)
Parameters
Value | Description | Data type | Optional | Default value |
---|---|---|---|---|
session | Session object. If it's not passed the default session will be used. | Session object | Yes | None |
on_response | Callable function to process the retrieved data. | Callable | Yes | None |
Return value
Usage
The following example demonstrates how to retrieve the symbol conversion data for MSFT.O:
response = symbol_conversion.Definition("MSFT.O").get_data()
print(response.data.df.to_string())
Response
DocumentTitle | RIC | IssueISIN | CUSIP | TickerSymbol | IssuerOAPermID | |
---|---|---|---|---|---|---|
MSFT.O | Microsoft Corp, Ordinary Share, NASDAQ Global Select Consolidated | MSFT.O | US5949181045 | 594918104 | MSFT | 4295907168 |
The following example demonstrates how to retrieve the symbol conversion data for multiple instruments at the same time:
response = symbol_conversion.Definition(
symbols=["MSFT.O", "AAPL.O", "GOOG.O", "IBM.N"]
).get_data()
print(response.data.df.to_string())
Response
DocumentTitle | RIC | IssueISIN | CUSIP | SEDOL | TickerSymbol | IssuerOAPermID | |
---|---|---|---|---|---|---|---|
MSFT.O | Microsoft Corp, Ordinary Share, NASDAQ Global Select Consolidated | MSFT.O | US5949181045 | 594918104 |
|
MSFT | 4295907168 |
AAPL.O | Apple Inc, Ordinary Share, NASDAQ Global Select Consolidated | AAPL.O | US0378331005 | 037833100 |
|
AAPL | 4295905573 |
GOOG.O | Alphabet Inc, Ordinary Share, Class C, NASDAQ Global Select Consolidated | GOOG.O | US02079K1079 | 02079K107 |
|
GOOG | 5030853586 |
IBM.N | International Business Machines Corp, Ordinary Share, New York Stock Exchange | IBM.N | US4592001014 | 459200101 | 2005973 | IBM | 4295904307 |
The following example demonstrates how to retrieve the symbol conversion data using instrument codes to convert from and convert to:
response = symbol_conversion.Definition(
symbols=["US5949181045", "US02079K1079"],
from_symbol_type=symbol_conversion.SymbolTypes.ISIN,
to_symbol_types=[
symbol_conversion.SymbolTypes.RIC,
symbol_conversion.SymbolTypes.OA_PERM_ID
],
).get_data()
print(response.data.df.to_string())
Response
DocumentTitle | RIC | IssuerOAPermID | |
---|---|---|---|
US5949181045 | Microsoft Corp, Ordinary Share, NASDAQ Global Select Consolidated | MSFT.O | 4295907168 |
US02079K1079 | Alphabet Inc, Ordinary Share, Class C, NASDAQ Global Select Consolidated | GOOG.O | 5030853586 |
The following example demonstrates how to retrieve the symbol conversion data using instrument codes to convert from only:
response = symbol_conversion.Definition(
symbols=["60000008", "60003513"],
from_symbol_type=symbol_conversion.SymbolTypes.LIPPER_ID
).get_data()
print(response.data.df.to_string())
Response
DocumentTitle | RIC | IssueISIN | SEDOL | FundClassLipperID | |
---|---|---|---|---|---|
60000008 | AS SICAV I - American Focused Equity A Acc USD, Open-End Fund, USD, Lipper | LP60000008 | LU0011963831 | 4008817 | 60000008 |
60003513 | JPM Japan Sustainable Equity A Acc JPY, Open-End Fund, JPY, Lipper | LP60003513 | LU0070214613 | 5408364 | 60003513 |
Related links
None