Active Bonds List - Python vs Eikon Discrepancy

Hi, I am currently using the below snippet in Python to retrieve active bonds ISIN list for a specific entity, in this case Apple Inc:

df, err = ek.get_data(['AAPL.O'], ['TR.BondISIN'])

I get 98 hits with this code, but if I go into the Eikon Workstation - Debt Structure I can see that the number should actually be 131. Could you please help? Am I perhaps using the wrong code? Thanks!

Best Answer

  • [Deleted User]
    [Deleted User] Newcomer
    Answer ✓

    Hi @Giorgio Cozzolino,


    As per this post, I'm afraid that "You cannot use use "Bond Search" with Eikon Data API(Python)."

    However, you may use the rdp Python library as shown in this article (under the 'Metadata' section) with (most probably) the same credentials as your Eikon's to run the bellow:


    rdp.search(
        view = rdp.SearchViews.GovCorpInstruments,
        filter = "ParentOAPermID eq '4295905573' and IsActive eq true and not(AssetStatus in ('MAT'))",
        top = 1000,
        select = "ISIN, MaturityDate, EOMAmountOutstanding"
    )


    which returns 131 rows of data.

Answers