Get historical senior tranche statistics
curl --request GET \
--url https://prod.api.reflect.money/tranches/senior/{id}/stats/historical \
--header 'Reflect-API-Key: <api-key>'import requests
url = "https://prod.api.reflect.money/tranches/senior/{id}/stats/historical"
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/historical', 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/historical",
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/historical"
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/historical")
.header("Reflect-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod.api.reflect.money/tranches/senior/{id}/stats/historical")
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": {
"period": "<string>",
"historicalData": [
{
"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>"
}
]
}
}{
"success": false,
"message": "Invalid request data: depositAmount must be positive"
}{
"success": false,
"message": "Internal server error"
}Tranches - Senior
Get historical senior tranche statistics
Available on development API only.
Retrieve time-bucketed historical statistics for a senior tranche. Returns hourly data for periods ≤ 7 days, daily data otherwise.
GET
/
tranches
/
senior
/
{id}
/
stats
/
historical
Get historical senior tranche statistics
curl --request GET \
--url https://prod.api.reflect.money/tranches/senior/{id}/stats/historical \
--header 'Reflect-API-Key: <api-key>'import requests
url = "https://prod.api.reflect.money/tranches/senior/{id}/stats/historical"
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/historical', 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/historical",
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/historical"
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/historical")
.header("Reflect-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod.api.reflect.money/tranches/senior/{id}/stats/historical")
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": {
"period": "<string>",
"historicalData": [
{
"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>"
}
]
}
}{
"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
Number of days for historical data (e.g., '7' for 7 days, '30' for 30 days). Defaults to 7 days if not provided.
Pattern:
^[0-9]+$Solana cluster to use (defaults to mainnet)
Available options:
mainnet, devnet ⌘I