Skip to content

feat: add financial dashboard API endpoint#3324

Open
TaprootFreak wants to merge 1 commit intodevelopfrom
feature/financial-dashboard
Open

feat: add financial dashboard API endpoint#3324
TaprootFreak wants to merge 1 commit intodevelopfrom
feature/financial-dashboard

Conversation

@TaprootFreak
Copy link
Collaborator

Summary

  • Add new DashboardModule under supporting/dashboard/ with admin-only GET /dashboard/financial/log endpoint
  • Queries FinancialDataLog entries from the log table, parses JSON message field, returns structured financial data (total balances, plus/minus breakdowns, BTC price, balances by financial type)
  • Supports dailySample (default true, groups by date) and from (ISO date filter) query parameters
  • Uses nested dashboard/financial route prefix for future sub-dashboard expansion

Test plan

  • Start API locally and test GET /dashboard/financial/log returns parsed financial data
  • Verify dailySample=true returns one entry per day
  • Verify dailySample=false&from=<7daysAgo> returns minute-level entries
  • Verify non-admin users receive 403

Add admin-only GET /dashboard/financial/log endpoint that queries
FinancialDataLog entries from the log table, parses the JSON message
field, and returns structured financial data including total balances,
plus/minus breakdowns, BTC price, and balances by financial type.

Supports daily sampling and date filtering via query parameters.
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