Skip to content

feat: add vault performance analytics endpoint with historical APY and risk metrics#1725

Draft
ForgeCoreye wants to merge 1 commit intobeefyfinance:masterfrom
ForgeCoreye:feat/vault-performance-analytics
Draft

feat: add vault performance analytics endpoint with historical APY and risk metrics#1725
ForgeCoreye wants to merge 1 commit intobeefyfinance:masterfrom
ForgeCoreye:feat/vault-performance-analytics

Conversation

@ForgeCoreye
Copy link
Copy Markdown

Problem

Users currently cannot compare vault performance trends or assess risk-adjusted returns. The API only provides current APY, making it hard to distinguish consistent performers from volatile strategies.

Solution

Add /analytics/vault-performance?vaultId=xxx&period=30d endpoint returning:

  • Historical APY (daily snapshots, last 90 days)
  • Max drawdown
  • Sharpe ratio (assuming 3% risk-free rate)
  • Win rate (% of days with positive returns)

Testing

Unit tests verify Sharpe ratio calculation against manual spreadsheet examples. Integration tests validate endpoint returns consistent data for known vaults.

@kexleyBeefy kexleyBeefy marked this pull request as draft February 23, 2026 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant