how to use eikon api to get bond info via bond Shenzhen code?


Shenzhen Code: 133275;

Bond info: Bond name, ISIN, Current Coupon, Coupon Type, Maturity Date and etc.

20230811120957.png



Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @xuke

    Thank you for reaching out to us.

    For this code, you can also use Refinitiv Data Library to search for RIC of this code.

    df = rd.discovery.search(
        view = rd.discovery.Views.FIXED_INCOME_INSTRUMENTS,
        top = 10,
        filter = "LocalCodesLocalScheme  eq 'SHZ:133275'",
        select = "BusinessEntity,DocumentTitle, RIC, ISIN, MaturityDate,CouponType"
    )
    df

    1691745752230.png

    You can use the following code to get the list of fields in the FIXED_INCOME_INSTRUMENTS view.

    from refinitiv.data.content import search
    response = search.metadata.Definition(
        view = search.Views.FIXED_INCOME_INSTRUMENTS  
    ).get_data()


    response.data.df

    1691745838168.png

Answers