> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rebelfi.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get APY History

> GET /v1/venues/strategies/:strategyId/apy-history — Daily APY of a strategy, before and after yield share

> [!NOTE]
>
> **Endpoint:** `GET https://api.rebelfi.io/v1/venues/strategies/:strategyId/apy-history`

Get the daily APY of a strategy for up to 90 days, both before (`apyGross`) 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](https://docs.rebelfi.io/docs/api-reference/venues/list.md)) |

### 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

```bash cURL theme={null}
curl -X GET "https://api.rebelfi.io/v1/venues/strategies/10/apy-history?days=30" \
  -H "x-api-key: your_api_key"
```

```typescript SDK theme={null}
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.

```json theme={null}
{
  "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.

> [!NOTE]
>
> 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`) |

With no selector, a profile-scoped key always gets the end-user share of its profile. To price a specific wallet, pass a selector.

> [!WARNING]
>
> `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.

> [!NOTE]
>
> This is a read. It counts toward the API key's read budget (100 requests/minute) and the organization ceiling. See [Rate Limits](https://docs.rebelfi.io/docs/api-reference/introduction.md#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 |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.