Developers

Vault epochs

Reference3 min read
Markdown ↓
On this page

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.

GET/v1/vault-epochs

List vault epochs#

Bearer API key. See API access.

Parameters#

NameLocationTypeRequiredDescription
_idqueryarray<string>NoList of item IDs. Minimum items: 1. Maximum items: 200. Pattern: ^[a-f0-9]{24}$. Encode multiple values as a comma-separated list.
vaultIdqueryarray<string>NoThe vault IDentifier Minimum items: 1. Maximum items: 200. Pattern: ^[a-f0-9]{24}$. Encode multiple values as a comma-separated list.
vaultAddressqueryarray<string>NoThe vault blockchain address Minimum items: 1. Maximum items: 200. Pattern: ^0x[a-fA-F0-9]{40}$. Encode multiple values as a comma-separated list.
statusquerystringNoThe status that must match Values: WAITING, RUNNING, DEFAULTED, FINISHED, CURE.
includeTransactionHashesquerybooleanNoWhether to load epoch boundary transaction hashes
aprquerynumberNoThe epoch gross APR that must match
apr:ltquerynumberNoThe epoch gross APR less than
apr:gtequerynumberNoThe epoch gross APR greater or equal than
apr:gtquerynumberNoThe epoch gross APR greater than
apr:ltequerynumberNoThe epoch gross APR less or equal than
durationquerynumberNoThe epoch duration that must match
duration:ltquerynumberNoThe epoch duration less than
duration:ltequerynumberNoThe epoch duration less or equal than
duration:gtquerynumberNoThe epoch duration greater than
duration:gtequerynumberNoThe epoch duration greater or equal than
countquerynumberNoThe epoch number that must match
count:ltquerynumberNoThe epoch number less then
count:ltequerynumberNoThe epoch number less or equal than
count:gtquerynumberNoThe epoch number greater than
count:gtequerynumberNoThe epoch number greater or equal than
timestamp:gtequerynumberNoThe epoch block timestamp greater or equal than
timestamp:ltequerynumberNoThe epoch block timestamp less or equal than
startDatequerystringNoThe epoch start date equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$.
startDate:ltquerystringNoThe epoch start date less than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$.
startDate:gtequerystringNoThe 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:gtquerystringNoThe epoch start date greater than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$.
startDate:ltequerystringNoThe epoch start date less or equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$.
endDatequerystringNoThe epoch end date equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$.
endDate:ltquerystringNoThe epoch start date equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$.
endDate:gtequerystringNoThe epoch start date equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$.
endDate:gtquerystringNoThe epoch start date equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$.
endDate:ltequerystringNoThe epoch start date equal than Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$.
limitqueryintegerNoNumber of requested items. Default: 50. Minimum: 1. Maximum: 200.
offsetqueryintegerNoNumber of skipped items. Minimum: 0.
sortquerystringNoThe field to use to sort the items. Values: _id, count, timestamp, apr.
orderquerystringNoSort order of the items. Values: asc, desc.
fieldsqueryarray<string>NoFields 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

FieldTypePresenceDescription
dataarray<object>Required
data[].startSnapshotobjectOptional
data[].startSnapshot.pricestringRequired
data[].startSnapshot.totalSupplystringRequired
data[].startSnapshot.transactionHashstringRequiredPattern: ^0x[a-fA-F0-9]{64}$.
data[].startSnapshot.blockobjectRequired
data[].startSnapshot.block.numbernumberRequired
data[].startSnapshot.block.timestampnumberRequiredUnix timestamp in seconds.
data[].stopSnapshotobjectOptional
data[].stopSnapshot.pricestringRequired
data[].stopSnapshot.totalSupplystringRequired
data[].stopSnapshot.transactionHashstringRequiredPattern: ^0x[a-fA-F0-9]{64}$.
data[].stopSnapshot.blockobjectRequired
data[].stopSnapshot.block.numbernumberRequired
data[].stopSnapshot.block.timestampnumberRequiredUnix timestamp in seconds.
data[].APRsobjectOptional
data[].APRs.EPOCHnumberRequired
data[].APRs.BUFFERnumberRequired
data[].APRs.CUREnumberOptional
data[].APRs.GROSSnumberRequired
data[].APRs.NETnumberRequired
data[].APRs.FEEnumberOptional
data[].APRs.DELTAnumberRequired
data[].APYsobjectOptional
data[].APYs.GROSSnumberRequired
data[].APYs.NETnumberRequired
data[].APYs.FEEnumberRequired
data[].interestobjectOptional
data[].interest.NETstringRequired
data[].interest.FEEstringRequired
data[].interest.GROSSstringRequired
data[].feeobjectOptional
data[].fee.PERFORMANCEstringRequired
data[].fee.MANAGEMENTstringRequired
data[].fee.WITHDRAWALSstringOptional
data[].feePercentageobjectOptional
data[].feePercentage.PERFORMANCEnumberRequiredMinimum: 0.
data[].feePercentage.MANAGEMENTnumberRequiredMinimum: 0.
data[].totalSupplystringOptional
data[].pricestringOptional
data[].TVLobjectOptional
data[].TVL.tokenstringRequired
data[].TVL.USDstringRequired
data[].TVL.withRequestsTokenstringOptionalTVL including pending deposits and withdraws
data[].TVL.withRequestsUSDstringOptionalTVL + pending requests converted in USD
data[].creditExtendedobjectOptional
data[].creditExtended.tokenstringRequired
data[].creditExtended.USDstringRequired
data[].expectedIntereststringOptional
data[].unclaimedFeesstringOptional
data[].depositsstringOptional
data[].durationnumberOptional
data[].statusstringOptionalValues: WAITING, RUNNING, DEFAULTED, FINISHED, CURE.
data[].withdrawTypestringOptionalValues: INSTANT, STANDARD.
data[].countnumberOptional
data[].bufferDurationnumberOptional
data[].startDatestringOptional
data[].endDatestringOptional
data[].withdrawsobjectOptional
data[].withdraws.amountstringRequired
data[].withdraws.feesstringRequired
data[].withdraws.principalstringOptional
data[].withdraws.intereststringOptional
data[].depositQueueobjectOptional
data[].depositQueue.amountstringRequired
data[].depositQueue.epochWithdrawPricestringOptional
data[].depositQueue.statusstringRequiredValues: PENDING, PROCESSED.
data[].withdrawQueueobjectOptional
data[].withdrawQueue.amountstringRequired
data[].withdrawQueue.epochWithdrawPricestringOptional
data[].withdrawQueue.statusstringRequiredValues: PENDING, PROCESSED.
data[].instantWithdrawsobjectOptional
data[].instantWithdraws.amountstringRequired
data[].instantWithdraws.delaynumberRequired
data[].instantWithdraws.aprDeltanumberRequired
data[].instantWithdraws.allowedbooleanRequired
data[].instantWithdraws.deadlinestringOptional
data[].vaultIdstringOptionalPattern: ^[a-f0-9]{24}$.
data[].vaultAddressstringOptionalPattern: ^0x[a-fA-F0-9]{40}$.
data[].blockobjectOptional
data[].block.numbernumberRequired
data[].block.timestampnumberRequiredUnix timestamp in seconds.
data[]._idstringOptionalEntity ID. Pattern: ^[a-f0-9]{24}$.
data[].createdAtstringOptionalEntity creation date. Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$.
data[].updatedAtstringOptionalThe last-update date. Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$.
data[].startTransactionHashstringOptionalPattern: ^0x[a-fA-F0-9]{64}$.
data[].stopTransactionHashstringOptionalPattern: ^0x[a-fA-F0-9]{64}$.
totalCountintegerRequiredMinimum: 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 specification

Lender 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.

GET/v1/vault-epochs/lender-trend

Get completed-epoch lender counts#

Bearer API key. See API access.

Parameters#

NameLocationTypeRequiredDescription
vaultIdquerystringYes
endDate:gtquerystringNoFormat: date-time.

Response 200#

Lender count per completed materialized epoch.

Content type: application/json · Schema: array<object>

FieldTypePresenceDescription
[].datestringRequiredFormat: date-time.
[].lendersintegerRequiredMinimum: 0.
Example response#
json
[
  {
    "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