Get account vault performance metrics
curl --request GET \
--url https://api.defindex.io/account/{walletAddress}/vault/{vaultAddress} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.defindex.io/account/{walletAddress}/vault/{vaultAddress}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.defindex.io/account/{walletAddress}/vault/{vaultAddress}', 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://api.defindex.io/account/{walletAddress}/vault/{vaultAddress}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.defindex.io/account/{walletAddress}/vault/{vaultAddress}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.defindex.io/account/{walletAddress}/vault/{vaultAddress}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.defindex.io/account/{walletAddress}/vault/{vaultAddress}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"accountAddress": "GB7NTQG4EXB7NZEA5GNFHIHEQVTGQTZ6OWKWUD535FBEHNSEVCKZULIY",
"vaultAddress": "CBNKCU3HGFKHFOF7JTGXQCNKE3G3DXS5RDBQUKQMIIECYKXPIOUGB2S3",
"vaultName": "DeFindex-Vault-BeansUsdcVault",
"vaultSymbol": "BNSUSDC",
"interval": "daily",
"currentPosition": {
"shares": "12630722725",
"estimatedValue": "13588103705",
"estimatedValueDisplay": "1,358.81",
"assets": [
{
"tokenAddress": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 7,
"amount": "13588103705",
"amountDisplay": "1,358.81",
"estimatedValue": "13588103705",
"estimatedValueDisplay": "1,358.81"
}
],
"lastUpdated": "2025-12-10T19:27:59.277Z"
},
"performance": {
"roi": 1.8790635838174747,
"totalDeposited": "14988309232",
"totalDepositedDisplay": "1,498.83",
"totalWithdrawn": "1650825330",
"totalWithdrawnDisplay": "165.08",
"totalInterestEarned": "250619803",
"totalInterestEarnedDisplay": "25.06",
"netDeposits": "13337483902",
"netDepositsDisplay": "1,333.74",
"period24h": {
"apy": 20.57381881828393,
"interestEarned": "6963216",
"interestEarnedDisplay": "0.69",
"deposits": "0",
"depositsDisplay": "0.00",
"withdrawals": "0",
"withdrawalsDisplay": "0.00"
},
"period7d": {
"apy": 36.87846441682105,
"interestEarned": "68887294",
"interestEarnedDisplay": "6.88",
"deposits": "2111400000",
"depositsDisplay": "211.14",
"withdrawals": "0",
"withdrawalsDisplay": "0.00"
},
"period30d": {
"apy": 20.211924094493995,
"interestEarned": "154563081",
"interestEarnedDisplay": "15.45",
"deposits": "3745425032",
"depositsDisplay": "374.54",
"withdrawals": "450225024",
"withdrawalsDisplay": "45.02"
},
"sinceInception": {
"days": 63,
"totalReturn": 1.8790635838174747,
"interestEarned": "250619803",
"interestEarnedDisplay": "25.06"
}
},
"data": [
{
"timestamp": "2025-10-08T00:00:00.000Z",
"shares": "955783508",
"positionValue": "999999999",
"positionValueDisplay": "99.99",
"vaultPPS": 1.046262036074933,
"netDeposits": "1000000000",
"netDepositsDisplay": "100.00",
"interestEarned": "-1",
"interestEarnedDisplay": "-0.00",
"interestEarnedPeriod": "0",
"interestEarnedPeriodDisplay": "0.00",
"changeFromPrevious": null,
"event": {
"type": "deposit",
"dfTokenAmount": "955783508",
"assets": [
{
"tokenAddress": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75",
"symbol": "USDC",
"amount": "1000000000"
}
],
"transactionId": "d558071bd5bcdca4fb5d3f09c15af899c07b524b0c80d9a5547e70a5b1020d2e"
}
}
]
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"error": "Too Many Requests",
"retryAfter": 1
}Historical data
Get account vault performance metrics
User Experience Function: Retrieves comprehensive performance metrics for a specific account’s position in a vault including current position value, ROI, APY across different periods (24h, 7d, 30d, since inception), total deposits/withdrawals, interest earned, and historical time series data tracking position value over time.
GET
/
account
/
{walletAddress}
/
vault
/
{vaultAddress}
Get account vault performance metrics
curl --request GET \
--url https://api.defindex.io/account/{walletAddress}/vault/{vaultAddress} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.defindex.io/account/{walletAddress}/vault/{vaultAddress}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.defindex.io/account/{walletAddress}/vault/{vaultAddress}', 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://api.defindex.io/account/{walletAddress}/vault/{vaultAddress}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://api.defindex.io/account/{walletAddress}/vault/{vaultAddress}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.defindex.io/account/{walletAddress}/vault/{vaultAddress}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.defindex.io/account/{walletAddress}/vault/{vaultAddress}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"accountAddress": "GB7NTQG4EXB7NZEA5GNFHIHEQVTGQTZ6OWKWUD535FBEHNSEVCKZULIY",
"vaultAddress": "CBNKCU3HGFKHFOF7JTGXQCNKE3G3DXS5RDBQUKQMIIECYKXPIOUGB2S3",
"vaultName": "DeFindex-Vault-BeansUsdcVault",
"vaultSymbol": "BNSUSDC",
"interval": "daily",
"currentPosition": {
"shares": "12630722725",
"estimatedValue": "13588103705",
"estimatedValueDisplay": "1,358.81",
"assets": [
{
"tokenAddress": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75",
"symbol": "USDC",
"name": "USD Coin",
"decimals": 7,
"amount": "13588103705",
"amountDisplay": "1,358.81",
"estimatedValue": "13588103705",
"estimatedValueDisplay": "1,358.81"
}
],
"lastUpdated": "2025-12-10T19:27:59.277Z"
},
"performance": {
"roi": 1.8790635838174747,
"totalDeposited": "14988309232",
"totalDepositedDisplay": "1,498.83",
"totalWithdrawn": "1650825330",
"totalWithdrawnDisplay": "165.08",
"totalInterestEarned": "250619803",
"totalInterestEarnedDisplay": "25.06",
"netDeposits": "13337483902",
"netDepositsDisplay": "1,333.74",
"period24h": {
"apy": 20.57381881828393,
"interestEarned": "6963216",
"interestEarnedDisplay": "0.69",
"deposits": "0",
"depositsDisplay": "0.00",
"withdrawals": "0",
"withdrawalsDisplay": "0.00"
},
"period7d": {
"apy": 36.87846441682105,
"interestEarned": "68887294",
"interestEarnedDisplay": "6.88",
"deposits": "2111400000",
"depositsDisplay": "211.14",
"withdrawals": "0",
"withdrawalsDisplay": "0.00"
},
"period30d": {
"apy": 20.211924094493995,
"interestEarned": "154563081",
"interestEarnedDisplay": "15.45",
"deposits": "3745425032",
"depositsDisplay": "374.54",
"withdrawals": "450225024",
"withdrawalsDisplay": "45.02"
},
"sinceInception": {
"days": 63,
"totalReturn": 1.8790635838174747,
"interestEarned": "250619803",
"interestEarnedDisplay": "25.06"
}
},
"data": [
{
"timestamp": "2025-10-08T00:00:00.000Z",
"shares": "955783508",
"positionValue": "999999999",
"positionValueDisplay": "99.99",
"vaultPPS": 1.046262036074933,
"netDeposits": "1000000000",
"netDepositsDisplay": "100.00",
"interestEarned": "-1",
"interestEarnedDisplay": "-0.00",
"interestEarnedPeriod": "0",
"interestEarnedPeriodDisplay": "0.00",
"changeFromPrevious": null,
"event": {
"type": "deposit",
"dfTokenAmount": "955783508",
"assets": [
{
"tokenAddress": "CCW67TSZV3SSS2HXMBQ5JFGCKJNXKZM7UQUWUZPUTHXSTZLEO7SJMI75",
"symbol": "USDC",
"amount": "1000000000"
}
],
"transactionId": "d558071bd5bcdca4fb5d3f09c15af899c07b524b0c80d9a5547e70a5b1020d2e"
}
}
]
}{
"statusCode": 429,
"message": "Rate limit exceeded",
"error": "Too Many Requests",
"retryAfter": 1
}Authorizations
Path Parameters
Query Parameters
Response
Account vault performance retrieved successfully
Was this page helpful?