get_symbology doesn't support CUSIP lookup for CUSIP (CINs) (Extended)

Hi,

For US listed stocks we have a database of CUSIPs... this includes stocks listed on the NASDAQ Global Select market.

It seems when using get_symbology from='CUSIP', it will return no results. An example is MHLD US Maiden Holdings which has a CUSIP (International Number, CIN): G5753U112.

The security does pop up in Eikon search. Looking using DIB function within Eikon, it seems G5753U112 is not in the TR.CUSIP field, but rather CUSIP (Extended/CIN) (TR.CUSIPExtended or TR.CinCUSIPCode).

I am able to get MHLD using CUSIP G5753U112 from send_json_request instead, but it may be worth supporting CUSIP CINs in get_symbology?

Best Answer

  • Jirapongse
    Jirapongse admin
    Answer ✓

    I can get the result with this statement.

    data = ek.get_symbology(["G5753U112"], from_symbol_type="CUSIP", bestMatch=False, raw_output=True)

    image

    You need to set bestMatch to False.

Answers

  • Ah yes. Apologies did not read the comments in symbology.py, only the documentation, indeed bestMatch is one of the parameters.