cURL
curl --request POST \ --url https://terrapinfinance.com/api/v1/muni_price_to_yield \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' [ { "isin": "US005824LP01", "trade_data": [ { "price": 101.78, "settlement_date": "2025-01-01" } ] } ] '
{ "data": [ { "isin": "US005824LP01", "trade_data": [ { "price": 101.78, "settlement_date": "2025-01-01", "ytc_continuous": 4.6472, "ytc_money_market": null, "ytc_semi_annual": 4.7017, "ytm_continuous": 4.71611, "ytm_money_market": null, "ytm_semi_annual": 4.7722 } ] } ], "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>
International Securities Identification Number (ISIN), unique 12-character code for the security.
12
Show child attributes
Calculated yield metrics
List of response data objects, often capped to 1000.
Total number of results in the database that match the query filters.