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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
11 2 3 4

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!

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonbonds
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.

Upvote
Accepted
1.4k 6 2 2

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.

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.

Thanks Jonathan, that's an excellent turnaround!

Upvotes
9.7k 49 38 60

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.

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.

Click below to post an Idea Post Idea