GET
/
core
/
portfolio
/
accounts
/
{accountId}
/
performance
curl --request GET \
  --url https://api.enterprise.sandbox.uphold.com/core/portfolio/accounts/{accountId}/performance \
  --header 'Authorization: Bearer <token>'
{
  "performance": {
    "averagePricePaid": "105072.09875643805",
    "totalInvested": "33.0399214539619448225",
    "unrealizedGains": "0.653003149818696335"
  }
}
You can retrieve the performance of several accounts in the portfolio by using the Get Portfolio Many Accounts Performance endpoint.

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication.

Path Parameters

accountId
string
required

The account id.

Query Parameters

denomination
string
default:USD

Specifies the asset code to use as the denomination for value conversion. If not provided, USD is used by default.

Minimum length: 1
interval
enum<string>
default:one-day

The interval for the portfolio performance.

Available options:
one-hour,
one-day,
all-time

Response

200
application/json

Portfolio account performance retrieved.

The response is of type object.