Download AllCoCo list in python

I am trying to obtain the list of banks and their identifiers that issue CoCos (contingent convertible bonds) from the 0#ALLCOCO chain RIC list into a pandas DataFrame.

I ran a couple of the Python API examples, and it all works like a charm. But the ALLCOCO list gives me a headache.

Any help is welcome!

Best Answer

  • Try doing this:

    constituents_data, err = tr.get_data(instruments=['0#ALLCOCO='], fields=['OFFCL_CODE'])

Answers