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:
parent
e05404fcab
commit
9821be0406
4 changed files with 62 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue