Enhance client dashboard summary: Add current fiat value of Bitcoin holdings and wallet currency to the summary metrics. Update model and frontend to display current value and unrealized gains/losses, improving financial insights for users.

This commit is contained in:
padreug 2025-06-22 16:02:43 +02:00
parent e05404fcab
commit 9821be0406
4 changed files with 62 additions and 1 deletions

View file

@ -13,6 +13,7 @@ class ClientDashboardSummary(BaseModel):
total_sats_accumulated: int
total_fiat_invested: int # Confirmed deposits
pending_fiat_deposits: int # Pending deposits awaiting confirmation
current_sats_fiat_value: float # Current fiat value of total sats
average_cost_basis: float # Average sats per fiat unit
current_fiat_balance: int # Available balance for DCA
total_transactions: int