How to get the Chinese company name?

I used "TR.CommonName" to get the company name, it get English name , but if I want to get the company name from Exchange on HK,SH,SZ that on Chinese name.

Best Answer

  • pierre.faurel
    Answer ✓

    In Eikon, the company name in the local language can be retrieved in DSPLY_NMLL field, and it can be displayed with a specific font.

    You can request this field:

    >>> df,err =ek.get_data('0880.HK', 'DSPLY_NMLL')
    >>> df
    Instrument DSPLY_NMLL
    0 0880.HK ????/d
    >>> name=df.iloc[0][1]

    But the result has to decoded by yourself because character codes arn't in the ASCII range (my machine can't display kanji character):

    >>> name=df.iloc[0][1]
    >>> name
    '????/d'
    >>> for c in name:
    ... print(hex(ord(c)))
    ...
    0x6fb3
    0x535a
    0x63a7
    0x80a1
    0x2f
    0x64

Answers