Get APY History
curl --request GET \
--url https://api.example.com/v1/venues/strategies/{strategyId}/apy-historyimport requests
url = "https://api.example.com/v1/venues/strategies/{strategyId}/apy-history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/venues/strategies/{strategyId}/apy-history', 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/venues/strategies/{strategyId}/apy-history",
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/venues/strategies/{strategyId}/apy-history"
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/venues/strategies/{strategyId}/apy-history")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/venues/strategies/{strategyId}/apy-history")
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_bodyVenues
Get APY History
GET /v1/venues/strategies/:strategyId/apy-history — Daily APY of a strategy, before and after yield share
GET
/
v1
/
venues
/
strategies
/
{strategyId}
/
apy-history
Get APY History
curl --request GET \
--url https://api.example.com/v1/venues/strategies/{strategyId}/apy-historyimport requests
url = "https://api.example.com/v1/venues/strategies/{strategyId}/apy-history"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/venues/strategies/{strategyId}/apy-history', 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/venues/strategies/{strategyId}/apy-history",
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/venues/strategies/{strategyId}/apy-history"
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/venues/strategies/{strategyId}/apy-history")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/venues/strategies/{strategyId}/apy-history")
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/venues/strategies/:strategyId/apy-historyapyGross) and after (apyNet) the yield share. Use it to draw a daily rate chart that matches what your users receive.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
strategyId | number | Yes | Strategy ID (from List Venues) |
Query Parameters
All parameters are optional. Pass at most one wallet selector (walletAddress, walletId or userId).
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
days | number | No | 30 | Days of history, an integer from 1 to 90 |
walletAddress | string | No | - | Price apyNet for this wallet address |
walletId | number | No | - | Price apyNet for this wallet ID |
userId | string | No | - | Price apyNet for this external user’s wallets |
Example Request
curl -X GET "https://api.rebelfi.io/v1/venues/strategies/10/apy-history?days=30" \
-H "x-api-key: your_api_key"
const { yieldShare, history } = await client.venues.apyHistory(10, { days: 30 });
// Price apyNet for one wallet
const forWallet = await client.venues.apyHistory(10, { days: 30, walletId: 42 });
Example Response
A Jupiter USDC strategy, called with a profile-scoped key whose end-user wallets have a 2% yield share. The response is shortened to the last three days.{
"strategyId": 10,
"yieldShare": 0.02,
"history": [
{
"date": "2026-11-14",
"apyGross": 0.0625,
"apyNet": 0.06125
},
{
"date": "2026-11-15",
"apyGross": 0.06,
"apyNet": 0.0588
},
{
"date": "2026-11-16",
"apyGross": 0.0615,
"apyNet": 0.06027
}
]
}
Response Fields
| Field | Type | Description |
|---|---|---|
strategyId | number | Strategy identifier |
yieldShare | number | Yield share applied to every date, as decimal (0.02 = 2%) |
history | ApyHistoryPoint[] | Daily APY, ascending by date, ending yesterday (UTC) |
ApyHistoryPoint Object
| Field | Type | Description |
|---|---|---|
date | string | UTC date (YYYY-MM-DD) |
apyGross | number | Time-weighted average APY over the UTC day, as decimal (0.0525 = 5.25%), before yield share |
apyNet | number | apyGross after the yield share: apyGross × (1 − yieldShare). Equals apyGross when apyGross is zero or negative |
How the daily value is computed
RebelFi reads each strategy’s APY on a regular schedule. The daily value is the time-weighted average of those readings over the UTC day (00:00 to 00:00 UTC, which is 01:00 to 01:00 in GMT+1). Each reading counts for as long as it was the current one, that is, until the next reading. The last reading before midnight covers the start of the day until that day’s first reading.Days are complete UTC calendar days. The most recent entry is yesterday; today is not included. A day with no reading is omitted from
history, not returned as zero. A strategy with fewer days of readings than days returns fewer entries, and a strategy with no readings in the period returns an empty history.Which yield share applies
yieldShare is the share of the holder the request is priced for:
| Request | Holder |
|---|---|
| A wallet selector is given | The selected wallet. It must belong to your organization and, for a profile-scoped key, to the key’s Wallet Profile. A walletAddress covers that address on every chain; a userId covers every wallet of that user. If the selected wallets have different yield shares, the request fails with 400 |
| No selector, profile-scoped key | End-user wallets (wallets registered with a userId) of the key’s Wallet Profile |
| No selector, admin key | The organization’s own wallets (wallets registered without a userId) |
apyNet uses the current yield share for every date. If the yield share changed during the period, earlier dates are not priced at the share that applied then.This is a read. It counts toward the API key’s read budget (100 requests/minute) and the organization ceiling. See Rate Limits.
Errors
| Status | Code | Description |
|---|---|---|
400 | VALIDATION_FAILED | Invalid strategyId, days not an integer from 1 to 90, more than one wallet selector, or selected wallets with different yield shares |
404 | STRATEGY_NOT_FOUND | Strategy ID doesn’t exist |
404 | WALLET_NOT_FOUND | The selected wallet doesn’t exist, or is outside your organization or the key’s Wallet Profile |