Why the depositary receipt that API found is different than what I see in WS (Price&Chart)

Wing Chun.Chow
edited June 4 in Eikon Data APIs

This is a question from a trial user who is testing out the WS API.

for the specific ticker (like 9988.HK), I can find the DR under the ‘Price & Chart’, but it's different from the results I got from the API. May I check the reason?

  1. here is the code and result screenshot:print(ek.get_data('SCREEN(U(IN(Equity(active,public))/*UNV:Public*/),Contains(TR.DRUnderlyingQuoteRic,"9988.HK"))',['TR.InstrumentDescription']))

API vs WS for DR.PNG

Please advise.

Answers

  • @Wing Chun.Chow Thanks for your question. We have a separate search API service that might be of more use to you. The screener service only really covers stocks. In your case you seem to be interested in depository receipts related to Alibaba Group I think. Please see the following code:

    import lseg.data as ld
    from lseg.data.content import search
    ld.open_session()
    
    response = search.Definition("alibaba group equity and depository receipt",
    view=search.Views.EQUITY_INSTRUMENTS,
    select="BusinessEntity,DocumentTitle,ISIN,RIC,PermID,PI",
    top=10000).get_data()
    response.data.df
    image.png

    Sorry I couldn't see how many rics were there in your screenshot properly. Our search API is an incredibly powerful service but with that power comes some complexity. We have written an article to help users familiarise themselves and have also a lot of examples to help you understand the code and parameters. I hope this can help.