Get tranche coverage ratio
curl --request GET \
--url https://prod.api.reflect.money/tranches/junior/{id}/coverage-ratioimport requests
url = "https://prod.api.reflect.money/tranches/junior/{id}/coverage-ratio"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://prod.api.reflect.money/tranches/junior/{id}/coverage-ratio', 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/junior/{id}/coverage-ratio",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/junior/{id}/coverage-ratio"
req, _ := http.NewRequest("GET", url, nil)
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/junior/{id}/coverage-ratio")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod.api.reflect.money/tranches/junior/{id}/coverage-ratio")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"baseAssetMint": "<string>",
"seniorMint": "<string>",
"juniorMint": "<string>",
"seniorProxyState": "<string>",
"juniorLiquidityPool": "<string>",
"seniorTvl": "<string>",
"juniorTvl": "<string>",
"coverageRatioBps": 123
}
}{
"success": false,
"message": "Invalid request data: depositAmount must be positive"
}Tranches - Junior
Get tranche coverage ratio
Available on development API only.
Retrieve the coverage ratio between junior and senior tranche TVL for the underlying asset. Returns both TVL values and the ratio in basis points.
GET
/
tranches
/
junior
/
{id}
/
coverage-ratio
Get tranche coverage ratio
curl --request GET \
--url https://prod.api.reflect.money/tranches/junior/{id}/coverage-ratioimport requests
url = "https://prod.api.reflect.money/tranches/junior/{id}/coverage-ratio"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://prod.api.reflect.money/tranches/junior/{id}/coverage-ratio', 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/junior/{id}/coverage-ratio",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/junior/{id}/coverage-ratio"
req, _ := http.NewRequest("GET", url, nil)
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/junior/{id}/coverage-ratio")
.asString();require 'uri'
require 'net/http'
url = URI("https://prod.api.reflect.money/tranches/junior/{id}/coverage-ratio")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"baseAssetMint": "<string>",
"seniorMint": "<string>",
"juniorMint": "<string>",
"seniorProxyState": "<string>",
"juniorLiquidityPool": "<string>",
"seniorTvl": "<string>",
"juniorTvl": "<string>",
"coverageRatioBps": 123
}
}{
"success": false,
"message": "Invalid request data: depositAmount must be positive"
}⌘I