POST
/
api
/
v1
/
muni_price_to_yield
Municipal price to yield conversion
curl --request POST \
  --url https://terrapinfinance.com/api/v1/muni_price_to_yield \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "inputs": [
    {
      "isin": "US005824LP01",
      "trade_data": [
        {
          "price": 101.78,
          "settlement_date": "2025-01-01"
        }
      ]
    }
  ]
}'
{
  "data": [
    {
      "isin": "US005824LP01",
      "trade_data": [
        {
          "price": 101.282,
          "settlement_date": "2025-05-01",
          "ytc_continuous": 3.25687,
          "ytc_money_market": null,
          "ytc_semi_annual": 3.27657,
          "ytm_continuous": 3.34231,
          "ytm_money_market": null,
          "ytm_semi_annual": 3.36221
        }
      ]
    }
  ],
  "total": 1
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

200
application/json

Calculated yield metrics

The response is of type object.