How to dynamically get a list of bonds from Eikon Python API or Pydatastream

I currently have a list of hundreds of Latinamerican bond ISINs on a CSV file. I have a script with both the Python Eikon API and Pydatastream that obtains a list out of the CSV and does analysis on the bonds. However, I run into issues every week because the list is static and a some number of the bonds get called every week and the query fails. So I have to manually go into the CSV file to check which bonds were called. I would like to be able to dynamically get a list (maybe searched-base) of Latam bonds and be able to return their ISINS, instead of having to manually update a CSV file. Any idea on how to do this?

Best Answer

  • Eikon Data APIs currently do not provide criteria search capability for bonds. The only Eikon API that provides this capability at the moment is RSearch COM library.
    Using Eikon Data APIs you can however easily check if a bond is active using TR.FiIsAssetActive field. Retrieve the value of this field for your list of ISINs and filter out all issues where the value of the field is 'N' before submitting the list for further analysis.

Answers

  • Thank you!

  • Is there a way to obtain the constituent list of a Latam bond index directy through the API?

  • I'm not a content specialist, but I don't believe we carry bond index constituents in Eikon at all. You can verify this by reaching out to TR Helpdesk by either calling the Helpdesk number in your country or by using Contact Us capability in your Eikon application. Or if you know otherwise, i.e. you know that constituents for the bond indices you're interested in are available through Eikon, would you mind giving an example of such index and how you see its constituents in Eikon?

  • @victor.delima, Can you provide further detail about the 'Latam bond index'?

  • There are some indexes composed just of Latam bonds. Although that is not really important, what I really need is to be able to dynamically query a bond universe.

  • the only way to reliably obtain a list of fixed income instruments is though a search query, and that's the RSearch COM API.

    Several possible workarounds would be (much less reliable):

    - getting the TR.BondIsin field for a company (private or public);

    - getting a list from specialised instrument chains, like 0#BREUROSAZ= for brazilian straight Eurobonds. A good starting point is the country's debt guide (for example, have a look at BR/DEBT or AR/DEBT in the quote app)

    - index constituents is the least reliable way, as there rarely is an index that looks at the wide market.