US municipal bond reference
curl --request POST \
--url https://terrapinfinance.com/api/v1/muni_reference \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"isins": [
"US005824LP01"
]
}
'import requests
url = "https://terrapinfinance.com/api/v1/muni_reference"
payload = { "isins": ["US005824LP01"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({isins: ['US005824LP01']})
};
fetch('https://terrapinfinance.com/api/v1/muni_reference', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://terrapinfinance.com/api/v1/muni_reference",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'isins' => [
'US005824LP01'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://terrapinfinance.com/api/v1/muni_reference"
payload := strings.NewReader("{\n \"isins\": [\n \"US005824LP01\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://terrapinfinance.com/api/v1/muni_reference")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"isins\": [\n \"US005824LP01\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://terrapinfinance.com/api/v1/muni_reference")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"isins\": [\n \"US005824LP01\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"advisors": [
"PMA Securities, LLC"
],
"award_date": "2024-01-30",
"award_time": "14:57:00",
"bond_counsel": [
"Chapman and Cutler LLP"
],
"capital_purpose": "new money",
"closing_date": "2024-02-20",
"counties": [
"Adams"
],
"country": "United States of America",
"country_code": "US",
"coupon_frequency": 2,
"coupon_payment_day": 1,
"coupon_payment_months": [
2,
8
],
"credit_enhancement_type": [
"bond_insurance"
],
"currency": "USD",
"dated_date": "2024-02-20",
"disclosure_counsel": [
"Chapman and Cutler LLP"
],
"extraordinary_optional_redemption": null,
"figi": "BBG01L7LZSL5",
"first_call_date": "2032-02-01",
"first_execution_date": "2024-01-31",
"first_execution_time": "10:30:00",
"first_interest_payment_date": "2024-08-01",
"first_trade_date": "2024-01-31",
"gas_prepay_guarantor": null,
"guarantee": "unsecured",
"has_mandatory_redemption": false,
"has_official_statement": true,
"insurers": [
"Assured Guaranty Municipal Corp."
],
"integral_multiple": 5000,
"interest_accrual_convention": "30/360",
"interest_accrual_date": "2024-02-20",
"interest_maximum_rate": null,
"interest_minimum_rate": null,
"interest_payment_schedule": [
{
"interest_type": "regular",
"payment_date": {
"day": 1,
"month": 8,
"year": 2024
},
"periodic_schedule": {
"period_amount": 6,
"period_type": "month",
"until": null
}
}
],
"interest_rate": 5,
"interest_rate_schedule": [
{
"determination_period": null,
"from_date": null,
"interest_rate": 5,
"interest_type": "fixed",
"rate_mode_name": null,
"until_date": null
}
],
"interest_type": "fixed rate",
"is_amt": false,
"is_bab": false,
"is_bank_qualified": true,
"is_callable": true,
"is_credit_enhanced": true,
"is_federally_taxable": false,
"is_green": false,
"is_insured": true,
"is_outstanding": true,
"is_pac": false,
"is_social": false,
"is_state_enhanced": false,
"is_state_taxable": true,
"is_sustainable": false,
"isin": "US005824LP01",
"issue_date": "2024-01-30",
"issue_price": 111.945,
"issue_yield": 3.28,
"issued_amount": 240000,
"issuer_canonical_id": 50926,
"issuer_name": "School District Number 172",
"liquidity_facility": null,
"mandatory_redemption_schedule": [],
"maturity_amount": 240000,
"maturity_date": "2035-02-01",
"minimum_denomination": 5000,
"next_call_date": "2032-02-01",
"next_coupon_date": "2025-08-01",
"obligor": "School District Number 172",
"obligor_canonical_id": 50926,
"optional_redemption_max_notice": 60,
"optional_redemption_min_notice": 30,
"optional_redemption_schedule": [
{
"call_date": "2032-02-01",
"call_price": {
"spread_in_bps": 0,
"type": "principal"
},
"includes_accrued_interest": true,
"is_periodic": true,
"period_amount": 1,
"period_type": "day",
"until": null
}
],
"outstanding_amount": 240000,
"parent_isin": null,
"previous_coupon_date": "2025-02-01",
"rating_group": "investment_grade",
"remarketing_agents": [],
"reserve_fund": false,
"sale_type": "competitive_sale",
"sector": "education",
"seniority": "senior",
"series": "General Obligation School Bonds, Series 2024",
"series_issued_amount": 6770000,
"source_of_repayment": "General Obligation",
"state": "IL",
"ticker": "IL ADASCD 5 02/01/2035",
"trustees": [],
"underwriters": [
"Stifel, Nicolaus & Company, Incorporated"
],
"use_categories": [
"primary and secondary education"
],
"use_sectors": [
"education"
],
"uses_of_proceeds": [
"public school district"
],
"validation_errors": [],
"variable_rate_mode": null
}
],
"total": 1
}{
"errors": [
{
"detail": "Unauthorized",
"reason": "Your account tier does not allow this operation. Contact team@terrapinfinance.com for an upgrade."
}
]
}{
"errors": [
{
"detail": "Payment Required",
"reason": "You have run out of your granted quota for this resource as defined by your account tier. Contact team@terrapinfinance.com for an upgrade."
}
]
}{
"errors": [
{
"detail": "Forbidden",
"reason": "Your account tier does not allow this operation. Contact team@terrapinfinance.com for an upgrade."
}
]
}{
"errors": [
{
"detail": "Invalid string. Got: integer",
"source": {
"pointer": "/isins/0"
},
"title": "Invalid value"
}
]
}{
"errors": [
{
"detail": "Too Many Requests",
"reason": "<string>"
}
]
}{
"errors": [
{
"detail": "Internal Server Error",
"reason": "<string>"
}
]
}US municipal bonds
Reference Data
Get full US municipal bond reference data for given ISINs.
POST
/
api
/
v1
/
muni_reference
US municipal bond reference
curl --request POST \
--url https://terrapinfinance.com/api/v1/muni_reference \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"isins": [
"US005824LP01"
]
}
'import requests
url = "https://terrapinfinance.com/api/v1/muni_reference"
payload = { "isins": ["US005824LP01"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({isins: ['US005824LP01']})
};
fetch('https://terrapinfinance.com/api/v1/muni_reference', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://terrapinfinance.com/api/v1/muni_reference",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'isins' => [
'US005824LP01'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://terrapinfinance.com/api/v1/muni_reference"
payload := strings.NewReader("{\n \"isins\": [\n \"US005824LP01\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://terrapinfinance.com/api/v1/muni_reference")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"isins\": [\n \"US005824LP01\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://terrapinfinance.com/api/v1/muni_reference")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"isins\": [\n \"US005824LP01\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"advisors": [
"PMA Securities, LLC"
],
"award_date": "2024-01-30",
"award_time": "14:57:00",
"bond_counsel": [
"Chapman and Cutler LLP"
],
"capital_purpose": "new money",
"closing_date": "2024-02-20",
"counties": [
"Adams"
],
"country": "United States of America",
"country_code": "US",
"coupon_frequency": 2,
"coupon_payment_day": 1,
"coupon_payment_months": [
2,
8
],
"credit_enhancement_type": [
"bond_insurance"
],
"currency": "USD",
"dated_date": "2024-02-20",
"disclosure_counsel": [
"Chapman and Cutler LLP"
],
"extraordinary_optional_redemption": null,
"figi": "BBG01L7LZSL5",
"first_call_date": "2032-02-01",
"first_execution_date": "2024-01-31",
"first_execution_time": "10:30:00",
"first_interest_payment_date": "2024-08-01",
"first_trade_date": "2024-01-31",
"gas_prepay_guarantor": null,
"guarantee": "unsecured",
"has_mandatory_redemption": false,
"has_official_statement": true,
"insurers": [
"Assured Guaranty Municipal Corp."
],
"integral_multiple": 5000,
"interest_accrual_convention": "30/360",
"interest_accrual_date": "2024-02-20",
"interest_maximum_rate": null,
"interest_minimum_rate": null,
"interest_payment_schedule": [
{
"interest_type": "regular",
"payment_date": {
"day": 1,
"month": 8,
"year": 2024
},
"periodic_schedule": {
"period_amount": 6,
"period_type": "month",
"until": null
}
}
],
"interest_rate": 5,
"interest_rate_schedule": [
{
"determination_period": null,
"from_date": null,
"interest_rate": 5,
"interest_type": "fixed",
"rate_mode_name": null,
"until_date": null
}
],
"interest_type": "fixed rate",
"is_amt": false,
"is_bab": false,
"is_bank_qualified": true,
"is_callable": true,
"is_credit_enhanced": true,
"is_federally_taxable": false,
"is_green": false,
"is_insured": true,
"is_outstanding": true,
"is_pac": false,
"is_social": false,
"is_state_enhanced": false,
"is_state_taxable": true,
"is_sustainable": false,
"isin": "US005824LP01",
"issue_date": "2024-01-30",
"issue_price": 111.945,
"issue_yield": 3.28,
"issued_amount": 240000,
"issuer_canonical_id": 50926,
"issuer_name": "School District Number 172",
"liquidity_facility": null,
"mandatory_redemption_schedule": [],
"maturity_amount": 240000,
"maturity_date": "2035-02-01",
"minimum_denomination": 5000,
"next_call_date": "2032-02-01",
"next_coupon_date": "2025-08-01",
"obligor": "School District Number 172",
"obligor_canonical_id": 50926,
"optional_redemption_max_notice": 60,
"optional_redemption_min_notice": 30,
"optional_redemption_schedule": [
{
"call_date": "2032-02-01",
"call_price": {
"spread_in_bps": 0,
"type": "principal"
},
"includes_accrued_interest": true,
"is_periodic": true,
"period_amount": 1,
"period_type": "day",
"until": null
}
],
"outstanding_amount": 240000,
"parent_isin": null,
"previous_coupon_date": "2025-02-01",
"rating_group": "investment_grade",
"remarketing_agents": [],
"reserve_fund": false,
"sale_type": "competitive_sale",
"sector": "education",
"seniority": "senior",
"series": "General Obligation School Bonds, Series 2024",
"series_issued_amount": 6770000,
"source_of_repayment": "General Obligation",
"state": "IL",
"ticker": "IL ADASCD 5 02/01/2035",
"trustees": [],
"underwriters": [
"Stifel, Nicolaus & Company, Incorporated"
],
"use_categories": [
"primary and secondary education"
],
"use_sectors": [
"education"
],
"uses_of_proceeds": [
"public school district"
],
"validation_errors": [],
"variable_rate_mode": null
}
],
"total": 1
}{
"errors": [
{
"detail": "Unauthorized",
"reason": "Your account tier does not allow this operation. Contact team@terrapinfinance.com for an upgrade."
}
]
}{
"errors": [
{
"detail": "Payment Required",
"reason": "You have run out of your granted quota for this resource as defined by your account tier. Contact team@terrapinfinance.com for an upgrade."
}
]
}{
"errors": [
{
"detail": "Forbidden",
"reason": "Your account tier does not allow this operation. Contact team@terrapinfinance.com for an upgrade."
}
]
}{
"errors": [
{
"detail": "Invalid string. Got: integer",
"source": {
"pointer": "/isins/0"
},
"title": "Invalid value"
}
]
}{
"errors": [
{
"detail": "Too Many Requests",
"reason": "<string>"
}
]
}{
"errors": [
{
"detail": "Internal Server Error",
"reason": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
International Securities Identification Number (ISIN), unique 12-character code for the security.
Required string length:
12⌘I
