Skip to main content
GET
/
v1
/
vaults
/
historical-apy
Fetch historic APY data for a vault
curl --request GET \
  --url https://api.paxoslabs.com/v1/vaults/historical-apy
{
  "interval": 86400,
  "data": [
    {
      "timeStamp": 123,
      "apy": 1.23
    }
  ]
}

Query Parameters

vault_address
string
required

The address of the vault.

Example:

"0x19e099B7aEd41FA52718D780dDA74678113C0b32"

start_timestamp
integer

Start timestamp for the period.

Example:

1732679943

end_timestamp
integer

End timestamp for the period.

Example:

173868000

intervals
integer

Intervals for the period.

Example:

86400

lookback_days
integer

Number of days to look back for APY calculation. Defaults to 14 if not provided.

Example:

14

Response

200 - application/json

Successful response with historic APY data.

interval
integer

The interval used for the lookback period.

Example:

86400

data
object[]

List of APY data points for each bucketed time period.