instrument tickers

Hi, how can i quickly transform yfinance ticker symbols to that of refinitiv?

For example AAPL, and some other symbols. I notice that not all of your instruments end with ".O" which makes it difficult for me to just write a function to convert yfinance symbols to that of refinitiv

Best Answer

  • Jirapongse
    Answer ✓

    @ken03

    We provide a method in the Refinitiv Data Library for Python to convert tickers to RICs.

    response = symbol_conversion.Definition(
        symbols=["AAPL","MSFT"],
        from_symbol_type=symbol_conversion.SymbolTypes.TICKER_SYMBOL,
        to_symbol_types=[
            symbol_conversion.SymbolTypes.RIC
        ],
    ).get_data()


    response.data.df

    The output is:

    1707717433724.png

    You can also refer to the sample on GitHub.

Answers

  • Hi @ken03 ,

    Thank you for posting the question in this forum.
    However, this forum is dedicated to an API usage question hence,the moderators on this forum do not have deep expertise in every type ofcontent available through Refinitiv products. Such expertise is available through Refinitiv Helpdesk, which can be reached via MyRefinitiv. To be of help, ticket number 13300374 was raised on your behalf and the support team is going to contact you directly to assist withthis.

    Hope this helps and please let meknow in case you have any further questions.

  • excellent and thank you very much jirapongse