US municipal bonds
Historical Pricing
Overview
Government and corporate bonds
US municipal bonds
Historical Pricing
POST
/
api
/
v1
/
muni_pricing_history
curl --request POST \
--url https://terrapinfinance.com/api/v1/muni_pricing_history \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"end_date": "2024-01-01",
"isin": "US005824LP01",
"start_date": "2023-12-01"
}'
{
"data": [
{
"amount": 100000,
"brokers_broker_trade_type": "customer_bought",
"is_alt_trading_system": false,
"is_list_offering_price": false,
"is_non_transaction_compensation": false,
"is_weighted_avg_price_trade": false,
"is_when_issued_trade": false,
"price": 99.45,
"settlement_date": "2023-12-04",
"trade_datetime": "2023-12-02T14:30:00Z",
"trade_type": "inter_dealer",
"ytc_continuous": 3.19876,
"ytc_money_market": null,
"ytc_semi_annual": 3.21298,
"ytm_continuous": 3.32631,
"ytm_money_market": null,
"ytm_semi_annual": 3.35622
},
{
"amount": 100000,
"brokers_broker_trade_type": null,
"is_alt_trading_system": false,
"is_list_offering_price": false,
"is_non_transaction_compensation": false,
"is_weighted_avg_price_trade": false,
"is_when_issued_trade": false,
"price": 100.33,
"settlement_date": "2023-12-21",
"trade_datetime": "2023-12-19T14:30:00Z",
"trade_type": "customer_sold",
"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": 2
}
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Response
200
application/json
Pricing history data
The response is of type object
.
curl --request POST \
--url https://terrapinfinance.com/api/v1/muni_pricing_history \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"end_date": "2024-01-01",
"isin": "US005824LP01",
"start_date": "2023-12-01"
}'
{
"data": [
{
"amount": 100000,
"brokers_broker_trade_type": "customer_bought",
"is_alt_trading_system": false,
"is_list_offering_price": false,
"is_non_transaction_compensation": false,
"is_weighted_avg_price_trade": false,
"is_when_issued_trade": false,
"price": 99.45,
"settlement_date": "2023-12-04",
"trade_datetime": "2023-12-02T14:30:00Z",
"trade_type": "inter_dealer",
"ytc_continuous": 3.19876,
"ytc_money_market": null,
"ytc_semi_annual": 3.21298,
"ytm_continuous": 3.32631,
"ytm_money_market": null,
"ytm_semi_annual": 3.35622
},
{
"amount": 100000,
"brokers_broker_trade_type": null,
"is_alt_trading_system": false,
"is_list_offering_price": false,
"is_non_transaction_compensation": false,
"is_weighted_avg_price_trade": false,
"is_when_issued_trade": false,
"price": 100.33,
"settlement_date": "2023-12-21",
"trade_datetime": "2023-12-19T14:30:00Z",
"trade_type": "customer_sold",
"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": 2
}