question

Upvotes
Accepted
1 0 1 2

IPA for bonds in API Playground.

Hi Team,

I hope you are doing well!
I need to find in the API Playground the equivalent of the API that I am using in Python for bonds:

from refinitiv.dataplatform.content.ipa import bond

rdp.get_bond_analytics(
    universe = ["91282CCS8="], #RIC
    fields = ["RedemptionPrice"] #FIELDS
)

I can't find it since there are a lot of IPA and I am not sure which one is the correct one.

Could you please help me?

Thanks and kind regards,

Tomas Arditi

ipa
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.

1 Answer

Upvotes
Accepted
21 0 0 0

Hello @tomas.arditi,

API you are looking for can be found at https://apidocs.refinitiv.com/Apps/ApiDocs#/details/L2RhdGEvcXVhbnRpdGF0aXZlLWFuYWx5dGljcy92MQ==/L2ZpbmFuY2lhbC1jb250cmFjdHM=/POST/PLAYGROUND (to access it, you have to log in first by accessing https://apidocs.refinitiv.com/Apps/ApiDocs, and then enter /data/quantitative-analytics/v1/financial-contracts in "Search an API" field in top right corner).

Below is an example request to this api based on code you provided:

{
  "fields": [
    "RedemptionPrice"
  ],
  "outputs": [
    "Headers",
    "Data"
  ],
  "universe": [
    {
      "instrumentType": "Bond",
      "instrumentDefinition": {
        "instrumentCode": "91282CCS8="
      }
    }
  ]
}

List of all possible fields can be obtained by sending the request with "fields" block removed.


Let me know if you have any additional questions.
Best regards,
Aliaksei

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