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

  • 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

  • Hi @Giorgio Cozzolino,

    Just to follow up on the answer by @jonathan.legrand, you can also refer to the Debt Structure article that programmatically searches for active government bonds. The article is largely focused on currency conversion but the technique and details around searching for bonds will help you understand. In addition, the article also shows a number of other data points that may be of interest.

  • Thanks Jonathan, that's an excellent turnaround!