Municipal historical pricing data
curl --request POST \
--url https://terrapinfinance.com/api/v1/muni_pricing_history \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"end_date": "2025-03-01",
"isin": "US1966324Q32",
"start_date": "2025-02-01"
}
'import requests
url = "https://terrapinfinance.com/api/v1/muni_pricing_history"
payload = {
"end_date": "2025-03-01",
"isin": "US1966324Q32",
"start_date": "2025-02-01"
}
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({end_date: '2025-03-01', isin: 'US1966324Q32', start_date: '2025-02-01'})
};
fetch('https://terrapinfinance.com/api/v1/muni_pricing_history', 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_pricing_history",
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([
'end_date' => '2025-03-01',
'isin' => 'US1966324Q32',
'start_date' => '2025-02-01'
]),
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_pricing_history"
payload := strings.NewReader("{\n \"end_date\": \"2025-03-01\",\n \"isin\": \"US1966324Q32\",\n \"start_date\": \"2025-02-01\"\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_pricing_history")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"end_date\": \"2025-03-01\",\n \"isin\": \"US1966324Q32\",\n \"start_date\": \"2025-02-01\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://terrapinfinance.com/api/v1/muni_pricing_history")
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 \"end_date\": \"2025-03-01\",\n \"isin\": \"US1966324Q32\",\n \"start_date\": \"2025-02-01\"\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"amount": 15000,
"id": "wD0jsvt_Nnkl_i-V6Lq1tQ",
"is_alt_trading_system": false,
"is_cancelled": false,
"is_list_offering_price": false,
"is_non_transaction_compensation": false,
"is_weighted_avg_price_trade": false,
"is_when_issued_trade": false,
"isin": "US1966324Q32",
"price": 113.45,
"settlement_date": "2025-02-24",
"trade_datetime": "2025-02-21T19:10:48",
"trade_type": "customer_sold",
"ytc_continuous": 3.1926,
"ytc_money_market": null,
"ytc_semi_annual": 3.2182,
"ytm_continuous": 3.55388,
"ytm_money_market": null,
"ytm_semi_annual": 3.5856
},
{
"amount": 15000,
"id": "xplI0HhwQ410xGbjZ86VgQ",
"is_alt_trading_system": false,
"is_cancelled": false,
"is_list_offering_price": false,
"is_non_transaction_compensation": false,
"is_weighted_avg_price_trade": false,
"is_when_issued_trade": false,
"isin": "US1966324Q32",
"price": 113.45,
"settlement_date": "2025-02-24",
"trade_datetime": "2025-02-21T19:10:48",
"trade_type": "inter_dealer",
"ytc_continuous": 3.1926,
"ytc_money_market": null,
"ytc_semi_annual": 3.2182,
"ytm_continuous": 3.55388,
"ytm_money_market": null,
"ytm_semi_annual": 3.5856
}
],
"total": 2
}{
"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
Historical Pricing
Get historical US municipal bond pricing data for a given ISIN.
POST
/
api
/
v1
/
muni_pricing_history
Municipal historical pricing data
curl --request POST \
--url https://terrapinfinance.com/api/v1/muni_pricing_history \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"end_date": "2025-03-01",
"isin": "US1966324Q32",
"start_date": "2025-02-01"
}
'import requests
url = "https://terrapinfinance.com/api/v1/muni_pricing_history"
payload = {
"end_date": "2025-03-01",
"isin": "US1966324Q32",
"start_date": "2025-02-01"
}
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({end_date: '2025-03-01', isin: 'US1966324Q32', start_date: '2025-02-01'})
};
fetch('https://terrapinfinance.com/api/v1/muni_pricing_history', 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_pricing_history",
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([
'end_date' => '2025-03-01',
'isin' => 'US1966324Q32',
'start_date' => '2025-02-01'
]),
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_pricing_history"
payload := strings.NewReader("{\n \"end_date\": \"2025-03-01\",\n \"isin\": \"US1966324Q32\",\n \"start_date\": \"2025-02-01\"\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_pricing_history")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"end_date\": \"2025-03-01\",\n \"isin\": \"US1966324Q32\",\n \"start_date\": \"2025-02-01\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://terrapinfinance.com/api/v1/muni_pricing_history")
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 \"end_date\": \"2025-03-01\",\n \"isin\": \"US1966324Q32\",\n \"start_date\": \"2025-02-01\"\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"amount": 15000,
"id": "wD0jsvt_Nnkl_i-V6Lq1tQ",
"is_alt_trading_system": false,
"is_cancelled": false,
"is_list_offering_price": false,
"is_non_transaction_compensation": false,
"is_weighted_avg_price_trade": false,
"is_when_issued_trade": false,
"isin": "US1966324Q32",
"price": 113.45,
"settlement_date": "2025-02-24",
"trade_datetime": "2025-02-21T19:10:48",
"trade_type": "customer_sold",
"ytc_continuous": 3.1926,
"ytc_money_market": null,
"ytc_semi_annual": 3.2182,
"ytm_continuous": 3.55388,
"ytm_money_market": null,
"ytm_semi_annual": 3.5856
},
{
"amount": 15000,
"id": "xplI0HhwQ410xGbjZ86VgQ",
"is_alt_trading_system": false,
"is_cancelled": false,
"is_list_offering_price": false,
"is_non_transaction_compensation": false,
"is_weighted_avg_price_trade": false,
"is_when_issued_trade": false,
"isin": "US1966324Q32",
"price": 113.45,
"settlement_date": "2025-02-24",
"trade_datetime": "2025-02-21T19:10:48",
"trade_type": "inter_dealer",
"ytc_continuous": 3.1926,
"ytc_money_market": null,
"ytc_semi_annual": 3.2182,
"ytm_continuous": 3.55388,
"ytm_money_market": null,
"ytm_semi_annual": 3.5856
}
],
"total": 2
}{
"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
Maximum trade date in ISO-8601 format (YYYY-MM-DD).
International Securities Identification Number (ISIN), unique 12-character code for the security.
Required string length:
12Minimum trade date in ISO-8601 format (YYYY-MM-DD).
⌘I
