The portfolio group of endpoints provides aggregated insights into a user’s financial position across all accounts. These endpoints allow you to track current holdings, performance metrics, and historical balances, offering a comprehensive view of investment performance and portfolio evolution over time.

Core concepts

Overview

The portfolio overview provides a snapshot of current holdings and total portfolio value. This represents the ‘What you own right now?’ view of a user’s financial position, including:
  • Total portfolio value across all assets
  • Breakdown of each asset holding with available and total balances

Performance

Portfolio performance focuses on investment analytics and profitability metrics. This answers the question ‘How well are your investments doing?’ by providing:
  • Average cost: The average price paid of an asset
  • Total invested: The total amount of funds invested in the portfolio
  • Unrealized gains/losses: The difference between current value and total invested
Performance calculations consider both realized and unrealized gains, providing accurate investment analytics that reflect true portfolio value changes over time. The endpoints offer multiple levels of granularity:

Historical balance

Historical balance tracking provides time-series data showing how portfolio values have evolved. This enables trend analysis and ‘How did we get here?’ insights through:
  • Data spanning the past hour, day, week, month, or year
  • Total and available balance history
  • Account-specific balance evolution

Use cases

The portfolio endpoints power key features in financial applications. Here are examples of how these endpoints are used in the Uphold Wallet to provide comprehensive portfolio insights:
Core Data Model

Overview Page

Core Data Model

Account Performance Page

The two images above demonstrate real-world implementations of portfolio data. Here’s how each endpoint contributes to building these comprehensive views:

Portfolio Overview Screen

AnnotationEndpointDescription
1 & 2Get Portfolio OverviewCore Portfolio Data: The total portfolio balance and individual asset holdings
3Get Portfolio Historical BalanceHistorical Performance Visualization: The portfolio performance graph displays historical balance trends
4Get Portfolio PerformancePerformance Metrics: The portfolio performance percentage is calculated
5Get Portfolio Account Performance, Get Many Accounts PerformanceAccount-Level Performance: Individual account performance indicators, powered by either single or multiple account endpoints

Account Detail Screen

The individual account view focuses on specific account analytics:
AnnotationEndpointDescription
1 & 2Get Portfolio Account PerformanceAccount Balance and Performance metrics
3Get Portfolio Account Historical BalanceAccount-specific performance chart showing historical balance