Refinitiv Data Library for Python

symbol_conversion.Definition object

This object creates a definition of information about the data that will be passed to the Search/Lookup API of the Refinitiv Data Platform.

Module

refinitiv.data.content.symbol_conversion

Syntax

symbol_conversion.Definition(
    symbols,
    from_symbol_type,
    to_symbol_types,
    preferred_country_code,
    asset_class,
    asset_state,
    extended_params
)

Parameters

Value Description Data type Optional Default value
symbols Single instrument or a list of instruments to convert. str, list[str] No -
from_symbol_type Instrument code to convert from. Symbol types Yes "_AllUnique"
to_symbol_types Instrument code to convert to. Symbol types Yes SYMBOL_TYPE_VALUES
preferred_country_code Unique ISO 3166 code for the country. CountryCode Yes None
asset_class AssetClass value to build the filter parameter. AssetClass Yes None
asset_state AssetState value to build the filter parameter. AssetState Yes None
extended_params Additional parameters to apply to the request. dict Yes None

Returned value

symbol_conversion.Definition object

Usage

The following example demonstrates how to create a symbol conversion definition object for MSFT.O:

from refinitiv.data.content import symbol_conversion


definition = symbol_conversion.Definition("MSFT.O")

Symbol types
CountryCode
AssetClass
AssetState