POST
/
api
/
v1
/
bond_pricing_history
curl --request POST \
  --url https://terrapinfinance.com/api/v1/bond_pricing_history \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "end_date": "2024-01-01",
  "isin": "XS1610682764",
  "start_date": "2023-12-01"
}'
{
  "data": [
    {
      "convexity": 3.20901,
      "date": "2023-12-02",
      "duration": 1.85875,
      "modified_duration": 2.10128,
      "price": 99.45,
      "yield_to_maturity": 3.32673
    },
    {
      "convexity": 3.10092,
      "date": "2023-12-19",
      "duration": 1.758,
      "modified_duration": 2.0789,
      "price": 100.33,
      "yield_to_maturity": 3.34231
    }
  ],
  "total": 2
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
end_date
string
required

Maximum trade date in ISO-8601 format.

Example:

"2024-01-01"

isin
string
required

International Securities Identification Number of the bond.

Required string length: 12
Example:

"XS1610682764"

start_date
string
required

Minimum trade date in ISO-8601 format.

Example:

"2023-12-01"

Response

200
application/json
Pricing history data
data
object[]
required

List of response data objects per bond. Contains at most 1000 objects.

Response schema per bond.

total
integer
required

Total number of results in the database that match the query filters.