Refinitiv Data Platform Library for TypeScript

getData

This method sends a request to the Refinitiv Data Platform to retrieve the data described in the SymbolConversion.Definition object.

Syntax

definition.getData(session?: Session)

Parameters

Value Description Data type Optional Default value
session Session object. If it's not passed the default session will be used. Session Yes -

Returned value

ContentResponse object.

Usage

The following example demonstrates how to retrieve the symbol conversion data for MSFT.O:

const definition = SymbolConversion.Definition("MSFT.O");

const response = await definition.getData();

console.log(response.data.table);
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:

const definition = SymbolConversion.Definition(['MSFT.O', 'AAPL.O', 'GOOG.O', 'IBM.N']);

const response = await definition.getData();

console.log(response.data.table);
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:

const definition = SymbolConversion.Definition({
    symbols: ["US5949181045", "US02079K1079"],
    fromSymbolType: SymbolConverson.SymbolTypes.ISIN,
    toSymbolType: [
        SymbolConverson.SymbolTypes.RIC,
        SymbolConverson.SymbolTypes.OAPermId
    ],

});

const response = await definition.getData();

console.log(response.data.table);
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

None.