Retrieve Data in Chinese

Hi Team,


Is there a way to retrieve all of the Data items in Chinese?

As when I use excel, if I set the preference languages as Chinese, all of the data items will be converted to Chinses. But it seems not working for Eikon Data API.


Thanks,

Danni

Best Answer

  • raksina.samasiri
    Answer ✓

    Hi @Danni.Qiu ,

    Could you please provide the Python code you used?

    I tried to reproduce it but I got the formula with English field names

    1630324147798.png

    then I converted the Excel formula to Python format, which will be

    Excel format

    =@TR("AAPL.O","TR.BusinessSummary;TR.CommonName;TR.CUSIPExtended;TR.HeadquartersCountry;TR.ETPName","CH=Fd RH=IN",B2)

    Python format

    ric = "AAPL.O"
    fields = ["TR.BusinessSummary, TR.CommonName, TR.CUSIPExtended, TR.HeadquartersCountry, TR.ETPName"]

    df, err = ek.get_data(ric, fields)
    df

    and I'm getting the same data from Eikon Excel and Eikon Data API

    1630324477570.png

Answers

  • Hi @raksina.samasiri,


    After you change your preference language to Chinese in Eikon desktop and restart excel.screenshot-2021-09-15-122516.png

    All of the item in formula builder will become Chinese in excel.

    But in API the output still remain in English.