cURL
curl --request GET \ --url https://api.example.com/v1/apy/{vault_id}
{ "vault_id": "<string>", "latest_share_price": "1000.00", "calculated_at": "2023-11-07T05:31:56Z", "daily_apy": 123, "weekly_apy": 123, "monthly_apy": 123, "yearly_apy": 123, "daily_period_days": 123, "weekly_period_days": 123, "monthly_period_days": 123, "yearly_period_days": 123 }
Calculate APY for daily, weekly, monthly, and yearly periods with fallback to oldest available data.
Vault ID
Specific period (daily, weekly, monthly, yearly, all)
APY data retrieved successfully
A decimal number represented as a string
"1000.00"