Government and corporate reference data
curl --request POST \
--url https://terrapinfinance.com/api/v1/bond_reference \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"isins": [
"XS2724510792"
]
}
'import requests
url = "https://terrapinfinance.com/api/v1/bond_reference"
payload = { "isins": ["XS2724510792"] }
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: ['XS2724510792']})
};
fetch('https://terrapinfinance.com/api/v1/bond_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/bond_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' => [
'XS2724510792'
]
]),
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/bond_reference"
payload := strings.NewReader("{\n \"isins\": [\n \"XS2724510792\"\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/bond_reference")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"isins\": [\n \"XS2724510792\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://terrapinfinance.com/api/v1/bond_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 \"XS2724510792\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"asset_class": "medium-term note",
"cfi_code": "DTFUFB",
"composite_issue_rating": "BBB+",
"composite_issuer_rating": "BBB",
"country": "Greece",
"coupon": 5.875,
"coupon_frequency": 1,
"currency": "EUR",
"figi": "BBG01K89S0G8",
"first_coupon_date": "2024-11-28",
"handle": null,
"industry_group": "banks",
"integral_multiple": 100000,
"interest_accrual_convention": "act/act (ICMA)",
"interest_accrual_date": "2023-11-28",
"interest_type": "variable rate",
"is_144a": true,
"is_callable": true,
"is_covered": null,
"is_green": null,
"is_inflation_linked": null,
"is_outstanding": true,
"is_puttable": false,
"is_regs": true,
"isin": "XS2724510792",
"issue_date": "2023-11-28",
"issue_rating_group": "investment_grade",
"issued_amount": 500000000,
"issuer_name": "EUROBANK SA",
"issuer_rating_group": "investment_grade",
"issuer_type": "corporate",
"lei": "213800KGF4EFNUQKAT69",
"lei_direct_parent": "JEUVK5RWVJEN8W0C9M24",
"lei_ultimate_parent": "JEUVK5RWVJEN8W0C9M24",
"maturity_date": "2029-11-28",
"maturity_type": "fixed",
"minimum_denomination": 100000,
"name": "EUROBANK SA FRN 2029",
"rank": "senior unsecured",
"registration_type": "bearer",
"sector": "financials",
"ticker": "EUROB V5.875 11/28/29 EMTN"
}
],
"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>"
}
]
}Government & corporate bonds
Reference Data
Get full government and corporate bond reference data for a given set of ISINs.
POST
/
api
/
v1
/
bond_reference
Government and corporate reference data
curl --request POST \
--url https://terrapinfinance.com/api/v1/bond_reference \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"isins": [
"XS2724510792"
]
}
'import requests
url = "https://terrapinfinance.com/api/v1/bond_reference"
payload = { "isins": ["XS2724510792"] }
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: ['XS2724510792']})
};
fetch('https://terrapinfinance.com/api/v1/bond_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/bond_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' => [
'XS2724510792'
]
]),
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/bond_reference"
payload := strings.NewReader("{\n \"isins\": [\n \"XS2724510792\"\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/bond_reference")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"isins\": [\n \"XS2724510792\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://terrapinfinance.com/api/v1/bond_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 \"XS2724510792\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"asset_class": "medium-term note",
"cfi_code": "DTFUFB",
"composite_issue_rating": "BBB+",
"composite_issuer_rating": "BBB",
"country": "Greece",
"coupon": 5.875,
"coupon_frequency": 1,
"currency": "EUR",
"figi": "BBG01K89S0G8",
"first_coupon_date": "2024-11-28",
"handle": null,
"industry_group": "banks",
"integral_multiple": 100000,
"interest_accrual_convention": "act/act (ICMA)",
"interest_accrual_date": "2023-11-28",
"interest_type": "variable rate",
"is_144a": true,
"is_callable": true,
"is_covered": null,
"is_green": null,
"is_inflation_linked": null,
"is_outstanding": true,
"is_puttable": false,
"is_regs": true,
"isin": "XS2724510792",
"issue_date": "2023-11-28",
"issue_rating_group": "investment_grade",
"issued_amount": 500000000,
"issuer_name": "EUROBANK SA",
"issuer_rating_group": "investment_grade",
"issuer_type": "corporate",
"lei": "213800KGF4EFNUQKAT69",
"lei_direct_parent": "JEUVK5RWVJEN8W0C9M24",
"lei_ultimate_parent": "JEUVK5RWVJEN8W0C9M24",
"maturity_date": "2029-11-28",
"maturity_type": "fixed",
"minimum_denomination": 100000,
"name": "EUROBANK SA FRN 2029",
"rank": "senior unsecured",
"registration_type": "bearer",
"sector": "financials",
"ticker": "EUROB V5.875 11/28/29 EMTN"
}
],
"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
