Platform

Get vault APYs

Get APY for all lending vaults from sharePrice snapshots. No authentication required, but authenticated requests may receive increased rate limits.

get/v3/platform/stats/vault-apys

Request

  • Base URL: https://api.creditcoop.xyz
  • URL: https://api.creditcoop.xyz/v3/platform/stats/vault-apys
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://clerk.creditcoop.xyz/oauth/authorize, token URL https://clerk.creditcoop.xyz/oauth/token)
    • none

Query parameters

periodinteger

Number of days to look back for APY calculation

Response

Default Response

weightedApyBpsnumber required

TVL-weighted average APY in basis points

weightedApyPctnumber required

TVL-weighted average APY as percentage number (e.g. 8.50 = 8.50%)

totalTvlstring required
periodDaysnumber required
vaultCountnumber required
decimalsinteger required

Max decimals used for TVL normalization across vaults

Changes

No recorded changes to this operation across all 1 revision of this API.