For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
27 2 1 7

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.

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
4.3k 2 4 5

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
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Thx , I can get the Chinese name now

Click below to post an Idea Post Idea