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

  • Alex Putkov.1
    Alex Putkov.1 ✭✭✭✭✭
    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