Vault epochs are accounting-period snapshots for epoch-based vaults. An epoch contains vault identity and block context, count, status, duration and buffer settings, boundary dates when available, TVL, supply and price, APR/APY data, interest and fees, deposits, withdrawals, and current deposit/withdraw queue state.
creditExtended reports token and USD amounts when available. startSnapshot and stopSnapshot preserve the boundary's price, supply, transaction hash, and block context; these optional boundary snapshots let you distinguish the epoch's current state from its start or stop observation.
Use APRs for explicit annualized rate components and interest.GROSS where available; expectedInterest remains for compatibility. Queue, withdrawal, and instant-withdraw fields reflect the snapshot's current product state. A FINISHED epoch is historical accounting data, not an on-chain settlement guarantee.
/v1/vault-epochsList vault epochs#
Bearer API key. See API access.
Parameters#
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
_id | query | array<string> | No | List of item IDs. Minimum items: 1. Maximum items: 200. Pattern: ^[a-f0-9]{24}$. Encode multiple values as a comma-separated list. |
vaultId | query | array<string> | No | The vault IDentifier Minimum items: 1. Maximum items: 200. Pattern: ^[a-f0-9]{24}$. Encode multiple values as a comma-separated list. |
vaultAddress | query | array<string> | No | The vault blockchain address Minimum items: 1. Maximum items: 200. Pattern: ^0x[a-fA-F0-9]{40}$. Encode multiple values as a comma-separated list. |
status | query | string | No | The status that must match Values: WAITING, RUNNING, DEFAULTED, FINISHED, CURE. |
includeTransactionHashes | query | boolean | No | Whether to load epoch boundary transaction hashes |
apr | query | number | No | The epoch gross APR that must match |
apr:lt | query | number | No | The epoch gross APR less than |
apr:gte | query | number | No | The epoch gross APR greater or equal than |
apr:gt | query | number | No | The epoch gross APR greater than |
apr:lte | query | number | No | The epoch gross APR less or equal than |
duration | query | number | No | The epoch duration that must match |
duration:lt | query | number | No | The epoch duration less than |
duration:lte | query | number | No | The epoch duration less or equal than |
duration:gt | query | number | No | The epoch duration greater than |
duration:gte | query | number | No | The epoch duration greater or equal than |
count | query | number | No | The epoch number that must match |
count:lt | query | number | No | The epoch number less then |
count:lte | query | number | No | The epoch number less or equal than |
count:gt | query | number | No | The epoch number greater than |
count:gte | query | number | No | The epoch number greater or equal than |
timestamp:gte | query | number | No | The epoch block timestamp greater or equal than |
timestamp:lte | query | number | No | The epoch block timestamp less or equal than |
startDate | query | string | No | The epoch start date equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$. |
startDate:lt | query | string | No | The epoch start date less than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$. |
startDate:gte | query | string | No | The epoch start date greater or equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$. |
startDate:gt | query | string | No | The epoch start date greater than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$. |
startDate:lte | query | string | No | The epoch start date less or equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$. |
endDate | query | string | No | The epoch end date equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$. |
endDate:lt | query | string | No | The epoch start date equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$. |
endDate:gte | query | string | No | The epoch start date equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$. |
endDate:gt | query | string | No | The epoch start date equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$. |
endDate:lte | query | string | No | The epoch start date equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$. |
limit | query | integer | No | Number of requested items. Default: 50. Minimum: 1. Maximum: 200. |
offset | query | integer | No | Number of skipped items. Minimum: 0. |
sort | query | string | No | The field to use to sort the items. Values: _id, count, timestamp, apr. |
order | query | string | No | Sort order of the items. Values: asc, desc. |
fields | query | array<string> | No | Fields to include in the response. Values: _id, block, APRs, TVL, totalSupply, price, deposits, duration, bufferDuration, unclaimedFees, expectedInterest, startDate, endDate, count, status, withdrawType, depositQueue, withdrawQueue, withdraws, instantWithdraws, createdAt, updatedAt. Encode multiple values as a comma-separated list. |
Response 200#
Paginated epochs. Items may be field projections.
Content type: application/json · Schema: object
| Field | Type | Presence | Description |
|---|---|---|---|
data | array<object> | Required | |
data[].startSnapshot | object | Optional | |
data[].startSnapshot.price | string | Required | |
data[].startSnapshot.totalSupply | string | Required | |
data[].startSnapshot.transactionHash | string | Required | Pattern: ^0x[a-fA-F0-9]{64}$. |
data[].startSnapshot.block | object | Required | |
data[].startSnapshot.block.number | number | Required | |
data[].startSnapshot.block.timestamp | number | Required | Unix timestamp in seconds. |
data[].stopSnapshot | object | Optional | |
data[].stopSnapshot.price | string | Required | |
data[].stopSnapshot.totalSupply | string | Required | |
data[].stopSnapshot.transactionHash | string | Required | Pattern: ^0x[a-fA-F0-9]{64}$. |
data[].stopSnapshot.block | object | Required | |
data[].stopSnapshot.block.number | number | Required | |
data[].stopSnapshot.block.timestamp | number | Required | Unix timestamp in seconds. |
data[].APRs | object | Optional | |
data[].APRs.EPOCH | number | Required | |
data[].APRs.BUFFER | number | Required | |
data[].APRs.CURE | number | Optional | |
data[].APRs.GROSS | number | Required | |
data[].APRs.NET | number | Required | |
data[].APRs.FEE | number | Optional | |
data[].APRs.DELTA | number | Required | |
data[].APYs | object | Optional | |
data[].APYs.GROSS | number | Required | |
data[].APYs.NET | number | Required | |
data[].APYs.FEE | number | Required | |
data[].interest | object | Optional | |
data[].interest.NET | string | Required | |
data[].interest.FEE | string | Required | |
data[].interest.GROSS | string | Required | |
data[].fee | object | Optional | |
data[].fee.PERFORMANCE | string | Required | |
data[].fee.MANAGEMENT | string | Required | |
data[].fee.WITHDRAWALS | string | Optional | |
data[].feePercentage | object | Optional | |
data[].feePercentage.PERFORMANCE | number | Required | Minimum: 0. |
data[].feePercentage.MANAGEMENT | number | Required | Minimum: 0. |
data[].totalSupply | string | Optional | |
data[].price | string | Optional | |
data[].TVL | object | Optional | |
data[].TVL.token | string | Required | |
data[].TVL.USD | string | Required | |
data[].TVL.withRequestsToken | string | Optional | TVL including pending deposits and withdraws |
data[].TVL.withRequestsUSD | string | Optional | TVL + pending requests converted in USD |
data[].creditExtended | object | Optional | |
data[].creditExtended.token | string | Required | |
data[].creditExtended.USD | string | Required | |
data[].expectedInterest | string | Optional | |
data[].unclaimedFees | string | Optional | |
data[].deposits | string | Optional | |
data[].duration | number | Optional | |
data[].status | string | Optional | Values: WAITING, RUNNING, DEFAULTED, FINISHED, CURE. |
data[].withdrawType | string | Optional | Values: INSTANT, STANDARD. |
data[].count | number | Optional | |
data[].bufferDuration | number | Optional | |
data[].startDate | string | Optional | |
data[].endDate | string | Optional | |
data[].withdraws | object | Optional | |
data[].withdraws.amount | string | Required | |
data[].withdraws.fees | string | Required | |
data[].withdraws.principal | string | Optional | |
data[].withdraws.interest | string | Optional | |
data[].depositQueue | object | Optional | |
data[].depositQueue.amount | string | Required | |
data[].depositQueue.epochWithdrawPrice | string | Optional | |
data[].depositQueue.status | string | Required | Values: PENDING, PROCESSED. |
data[].withdrawQueue | object | Optional | |
data[].withdrawQueue.amount | string | Required | |
data[].withdrawQueue.epochWithdrawPrice | string | Optional | |
data[].withdrawQueue.status | string | Required | Values: PENDING, PROCESSED. |
data[].instantWithdraws | object | Optional | |
data[].instantWithdraws.amount | string | Required | |
data[].instantWithdraws.delay | number | Required | |
data[].instantWithdraws.aprDelta | number | Required | |
data[].instantWithdraws.allowed | boolean | Required | |
data[].instantWithdraws.deadline | string | Optional | |
data[].vaultId | string | Optional | Pattern: ^[a-f0-9]{24}$. |
data[].vaultAddress | string | Optional | Pattern: ^0x[a-fA-F0-9]{40}$. |
data[].block | object | Optional | |
data[].block.number | number | Required | |
data[].block.timestamp | number | Required | Unix timestamp in seconds. |
data[]._id | string | Optional | Entity ID. Pattern: ^[a-f0-9]{24}$. |
data[].createdAt | string | Optional | Entity creation date. Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$. |
data[].updatedAt | string | Optional | The last-update date. Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$. |
data[].startTransactionHash | string | Optional | Pattern: ^0x[a-fA-F0-9]{64}$. |
data[].stopTransactionHash | string | Optional | Pattern: ^0x[a-fA-F0-9]{64}$. |
totalCount | integer | Required | Minimum: 0. |
Response 400#
Invalid request parameters. Correct the request before retrying.
Response 401#
An issued, valid API key is required.
Response 403#
The requested business data is outside the integration key access.
Response 429#
Request volume has been limited. Reduce frequency and honor Retry-After when supplied.
Response 5XX#
Service or upstream failure. Retry transient read failures with bounded backoff.
Download OpenAPI specificationLender trend#
GET /v1/vault-epochs/lender-trend?vaultId=... returns materialized lender counts for completed epochs of one readable vault. Use it for a historical trend, not as a wallet-level position source.
/v1/vault-epochs/lender-trendGet completed-epoch lender counts#
Bearer API key. See API access.
Parameters#
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
vaultId | query | string | Yes | |
endDate:gt | query | string | No | Format: date-time. |
Response 200#
Lender count per completed materialized epoch.
Content type: application/json · Schema: array<object>
| Field | Type | Presence | Description |
|---|---|---|---|
[].date | string | Required | Format: date-time. |
[].lenders | integer | Required | Minimum: 0. |
Example response#
[
{
"date": "2026-09-30T00:00:00.000Z",
"lenders": 42
}
]Response 400#
Invalid request parameters. Correct the request before retrying.
Response 401#
An issued, valid API key is required.
Response 403#
The requested business data is outside the integration key access.
Response 429#
Request volume has been limited. Reduce frequency and honor Retry-After when supplied.
Response 5XX#
Service or upstream failure. Retry transient read failures with bounded backoff.
Download OpenAPI specification