Planned Endpoints
GET /api/token-positions/op-wallet/:id
Get token positions for an operational wallet with complete yield breakdown. Status: 🔜 Service exists, API endpoint with API key auth coming soon Headers:id- Operational wallet ID (opWalletId)
balances.principal- Original funds deployed (total - yield)balances.yield- Cumulative yield earnedperformance.currentAPY- Current annual percentage yield (percentage string, e.g., “6.0” for 6%)performance.lifetimeYield- Total yield earned since inceptiontimestamps.inceptionDate- When yield tracking started
Principal Calculation:
principal = total balance - cumulative yieldThis comes from AllocationYieldSnapshot records that track yield accrual over time.GET /api/v1/allocations (Enhanced)
List allocations with complete yield metrics. Status: ⚠️ Endpoint exists but requires JWT authentication. API key support + yield enhancements coming soon. Current Authentication:Authorization: Bearer (JWT only)
Planned: X-API-Key header support
Query Parameters:
opWalletId(optional) - Filter by operational wallettoken(optional) - Token symbol (e.g., “USDC”)status(optional) - Filter by status (ACTIVE, UNWINDING, CLOSED)limit(optional) - Items per page (default: 50)offset(optional) - Starting position (default: 0)
balances.principal- Original amount deployedbalances.yield- Yield earned on this allocationperformance.currentApy- Current APY for this allocationperformance.lifetimeYield- Total yield earned
GET /api/wallets/stats (Enhanced)
Get wallet-level or org-level performance metrics. Status: ⚠️ Endpoint exists but needs yield metrics enhancement Headers:opWalletId(optional) - Specific wallet (omit for org-level)
performance.totalPrincipalUsd- Original funds deployed (across all tokens)performance.totalYieldUsd- Total yield earnedperformance.lifetimeROI- Percentage return (yield / principal)performance.weightedAvgAPY- Weighted average APY across all allocationsallocations.byProvider- Performance breakdown by yield protocol
USD Aggregation: All USD totals assume stablecoins = $1.00 USD. Non-stablecoin support (with price oracle) coming in future.
GET /api/core/operations/:id (Enhanced)
Get operation details with blockchain transactions and yield metrics for completed allocations. Status: 🔜 Endpoint planned, service method exists Headers:yieldMetrics.principalDeployed- Original amount allocatedyieldMetrics.yieldEarned- Yield earned during allocation periodyieldMetrics.effectiveAPY- APY achieved during this allocationyieldMetrics.daysAllocated- How long funds were deployed
Use Cases
Prove ROI to Stakeholders
Track Individual Allocation Performance
Monitor Wallet Performance
Data Types
All yield metrics endpoints use standard data types:- Amount: See Data Types Reference - 2-field
{ amount, currency }format - APY: Simple percentage string (e.g., “6.0” for 6% APY)
- USD Aggregate: Simple string (e.g., “3.61” for $3.61 USD)
- Timestamp: See Data Types Reference
Current Workaround
Until API endpoints are available:-
Use the Dashboard: Navigate to Wallets → [Your Wallet] to view:
- Principal vs yield breakdown
- Current APY per allocation
- Lifetime yield earned
- Performance by protocol
- Export Data: Dashboard supports CSV export for offline analysis
- Contact Support: For programmatic access needs, contact support@rebelfi.io to discuss early access
Timeline
Q1 2025 Roadmap:- ✅ Service methods implemented
- ✅ Dashboard displays yield metrics
- 🔜 API key authentication support for existing endpoints
- 🔜 Enhanced response formats with yield breakdown
- 🔜 New endpoints for token positions and operation details
- Add API key authentication to existing endpoints
- Enhance allocation responses with yield metrics
- Create token position endpoint with yield breakdown
- Create operation details endpoint
- Add wallet stats yield performance section
Related Documentation
- Data Types Reference - Standard formats for Amount, APY, etc.
- Operations API - Operation management
- Allocations API - Current allocation endpoints
- Wallets API - Wallet management
Support
Questions about yield metrics or timeline?- Email: support@rebelfi.io
- Discord: Join our community
- Dashboard: Use dashboard for immediate access to yield metrics