Commit 8eb9d0c
feat: add v2 TVL and Treasury protocol endpoints
Add 8 new pro-only v2 endpoints for protocol TVL and treasury data:
TVL (tag: TVL):
- GET /api/v2/metrics/tvl/protocol/{protocol}
- GET /api/v2/chart/tvl/protocol/{protocol}
- GET /api/v2/chart/tvl/protocol/{protocol}/chain-breakdown
- GET /api/v2/chart/tvl/protocol/{protocol}/token-breakdown
Treasury (tag: Treasury):
- GET /api/v2/metrics/treasury/protocol/{protocol}
- GET /api/v2/chart/treasury/protocol/{protocol}
- GET /api/v2/chart/treasury/protocol/{protocol}/chain-breakdown
- GET /api/v2/chart/treasury/protocol/{protocol}/token-breakdown
Key details:
- All endpoints marked x-api-plan-only (pro users only)
- TVL key param: all, staking, borrowed, vesting, pool2
- Treasury key param: OwnTokens, all
- currency=tokens on token-breakdown endpoints only
- Full IProtocolMetricsV2 schema with real Aave examples
- New "Treasury" tag added to pro spec
- llms.txt updated with accurate docs and usage examples
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 5eef811 commit 8eb9d0c
2 files changed
Lines changed: 1175 additions & 0 deletions
0 commit comments