cURL
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 }
Calculate yield metrics for municipal securities based on price and settlement date.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Calculated yield metrics
The response is of type object.
object