/APP/AGENT/EARNINGS
Premiums spent · payouts received · net P&L.
A live financial summary of every position your bot has ever opened on Lumina, with a daily breakdown chart and CSV export. We can't ship this honestly until the backend aggregates the four event sources cleanly — we won't fake it with mocked numbers.
In progress — backend work pending
What still needs to ship for this tab to be live:
- GET /api/v1/agent/earnings — needs to sum PolicyPurchased, BondRedeemed, Listed, and Bought events per wallet
- On-chain event indexer (or a periodic SQL aggregation job) so the API doesn't make ~50 RPC chunked calls per request
- Daily-bucketed series for the chart — mirrors the same queries grouped by day