Get senior tranche statistics
curl --request GET \
--url https://prod.api.reflect.money/tranches/senior/{id}/stats \
--header 'Reflect-API-Key: <api-key>'import requests
url = "https://prod.api.reflect.money/tranches/senior/{id}/stats"
headers = {"Reflect-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Reflect-API-Key': '<api-key>'}};
fetch('https://prod.api.reflect.money/tranches/senior/{id}/stats', 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://prod.api.reflect.money/tranches/senior/{id}/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Reflect-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://prod.api.reflect.money/tranches/senior/{id}/stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Reflect-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://prod.api.reflect.money/tranches/senior/{id}/stats")
.header("Reflect-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod.api.reflect.money/tranches/senior/{id}/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Reflect-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"stablecoin": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"supply": "<string>",
"holders": 123,
"principal": "<string>",
"yield": "<string>",
"volume": "<string>",
"exchange_rate_underlying": "<string>",
"exchange_rate_usdc": "<string>",
"apy_bps": 123,
"apy_bps_7d": 123,
"market_cap": "<string>",
"totalRevenue": "<string>"
}
}{
"success": false,
"message": "Invalid request data: depositAmount must be positive"
}{
"success": false,
"message": "Internal server error"
}Tranches - Senior
Get senior tranche statistics
Available on development API only.
Retrieve the latest statistics for a senior tranche including total supply, principal deposited, yield generated, holder count, and exchange rates.
GET
/
tranches
/
senior
/
{id}
/
stats
Get senior tranche statistics
curl --request GET \
--url https://prod.api.reflect.money/tranches/senior/{id}/stats \
--header 'Reflect-API-Key: <api-key>'import requests
url = "https://prod.api.reflect.money/tranches/senior/{id}/stats"
headers = {"Reflect-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'Reflect-API-Key': '<api-key>'}};
fetch('https://prod.api.reflect.money/tranches/senior/{id}/stats', 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://prod.api.reflect.money/tranches/senior/{id}/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Reflect-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://prod.api.reflect.money/tranches/senior/{id}/stats"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Reflect-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://prod.api.reflect.money/tranches/senior/{id}/stats")
.header("Reflect-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod.api.reflect.money/tranches/senior/{id}/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Reflect-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"stablecoin": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"supply": "<string>",
"holders": 123,
"principal": "<string>",
"yield": "<string>",
"volume": "<string>",
"exchange_rate_underlying": "<string>",
"exchange_rate_usdc": "<string>",
"apy_bps": 123,
"apy_bps_7d": 123,
"market_cap": "<string>",
"totalRevenue": "<string>"
}
}{
"success": false,
"message": "Invalid request data: depositAmount must be positive"
}{
"success": false,
"message": "Internal server error"
}Authorizations
API key for integrators to access integration-specific endpoints.
Path Parameters
Senior tranche ID (proxy state PDA address)
Query Parameters
Solana cluster to use (defaults to mainnet)
Available options:
mainnet, devnet ⌘I