Account Summary
curl --request GET \
--url https://api.example.com/v1/accounts/{accountId}/summaryimport requests
url = "https://api.example.com/v1/accounts/{accountId}/summary"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/accounts/{accountId}/summary', 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.example.com/v1/accounts/{accountId}/summary",
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://api.example.com/v1/accounts/{accountId}/summary"
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://api.example.com/v1/accounts/{accountId}/summary")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/accounts/{accountId}/summary")
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_bodyClient Accounts
Account Summary
GET /v1/accounts/:accountId/summary — The figures the client sees in its Earn portal
GET
/
v1
/
accounts
/
{accountId}
/
summary
Account Summary
curl --request GET \
--url https://api.example.com/v1/accounts/{accountId}/summaryimport requests
url = "https://api.example.com/v1/accounts/{accountId}/summary"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/accounts/{accountId}/summary', 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.example.com/v1/accounts/{accountId}/summary",
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://api.example.com/v1/accounts/{accountId}/summary"
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://api.example.com/v1/accounts/{accountId}/summary")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/accounts/{accountId}/summary")
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_bodyEndpoint:
GET https://api.rebelfi.io/v1/accounts/:accountId/summary- Each position row is the row List Allocations returns for it, plus its IDs, the token’s decimals and a 30-day APY.
totalsare sums of the position rows, one entry per token.asOfis the oldest refresh time among the positions. Values refresh on RebelFi’s schedule, not live.
tokenDecimals. APYs are decimals (0.05 = 5%). Times are ISO 8601
UTC.
A profile-scoped key reads the account’s wallets in its own profile; an admin key reads all of them.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
accountId | number | Yes | Client account ID |
Example Request
curl -X GET "https://api.rebelfi.io/v1/accounts/17/summary" \
-H "x-api-key: your_api_key"
const summary = await client.accounts.summary(17);
for (const total of summary.totals) {
console.log(`${total.token}: ${total.currentValue} (base units, ${total.tokenDecimals} decimals)`);
}
Example Response
{
"asOf": "2026-11-25T08:00:00.000Z",
"apy30d": 0.049,
"totals": [
{
"token": "USDC",
"tokenDecimals": 6,
"principal": "250000000000",
"currentValue": "251027400000",
"yieldEarned": "1054800000"
}
],
"wallets": [
{
"walletId": 42,
"address": "So11...abc",
"chain": "SOLANA",
"explorerUrl": "https://explorer.solana.com/address/So11...abc",
"balances": [
{
"token": "USDC",
"tokenAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"tokenDecimals": 6,
"available": "5000000000",
"supplied": "251027400000"
}
]
}
],
"positions": [
{
"allocationId": 901,
"walletId": 42,
"strategyId": 1,
"strategyName": "USDC Lending",
"venueId": 3,
"venueName": "Kamino",
"walletAddress": "So11...abc",
"blockchain": "solana",
"chain": "SOLANA",
"token": "USDC",
"tokenAddress": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"tokenDecimals": 6,
"principal": "250000000000",
"currentValue": "251027400000",
"yieldEarned": "1054800000",
"apy": 0.052,
"apyNet": 0.0494,
"apy30d": 0.049,
"lastUpdated": "2026-11-25T08:00:00.000Z"
}
]
}
asOf: null, apy30d: null, and empty totals and positions; its wallets are
still listed.
Response Fields
| Field | Type | Description |
|---|---|---|
asOf | string | null | The oldest lastUpdated among the positions. null when there are none |
apy30d | number | null | The positions’ 30-day APY, weighted by current value. null when no position has both |
totals | TokenTotals[] | One entry per token: the sums of that token’s positions |
wallets | EarnWallet[] | The account’s linked wallets with their balances |
positions | Position[] | One row per position |
TokenTotals Object
| Field | Type | Description |
|---|---|---|
token | string | Token symbol |
tokenDecimals | number | Token decimals |
principal | string | Supplied and not yet unwound |
currentValue | string | Current value, after the yield share |
yieldEarned | string | Earned to date |
EarnWallet Object
| Field | Type | Description |
|---|---|---|
walletId | number | Wallet ID |
address | string | Wallet address |
chain | string | SOLANA, ETHEREUM, BASE, ARC or POLYGON |
explorerUrl | string | null | The address on the chain’s explorer |
balances[].token | string | Token symbol |
balances[].tokenAddress | string | Token contract address |
balances[].tokenDecimals | number | Token decimals |
balances[].available | string | In the wallet and not supplied |
balances[].supplied | string | Current value of what is supplied from this wallet, after the yield share |
Position Object
| Field | Type | Description |
|---|---|---|
allocationId | number | Position ID |
walletId | number | The earn wallet holding the position |
strategyId | number | Strategy ID (use it to Unwind) |
strategyName | string | Strategy display name |
venueId | number | Venue ID |
venueName | string | Venue display name |
walletAddress | string | Wallet address |
blockchain | string | solana, ethereum, polygon or base |
chain | string | The chain record’s name, as in wallets[].chain |
token | string | Token symbol |
tokenAddress | string | Token contract address |
tokenDecimals | number | Token decimals |
principal | string | Supplied and not yet unwound |
currentValue | string | Current value, after the yield share |
yieldEarned | string | Earned to date; never negative |
apy | number | Current APY of the strategy, before the yield share |
apyNet | number | Current APY after this wallet’s yield share |
apy30d | number | null | Mean of the strategy’s daily net APY over the last 30 UTC days with data. null when there is none |
lastUpdated | string | When the position’s value was last refreshed |
Errors
| Code | HTTP | Description |
|---|---|---|
ACCOUNT_NOT_FOUND | 404 | No client account with this ID in your organization |