POST
/
core
/
portfolio
/
accounts
/
_mget
/
performance
Get many accounts performance
curl --request POST \
  --url https://api.enterprise.sandbox.uphold.com/core/portfolio/accounts/_mget/performance \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "ids": [
    "e4c1cbff-28a7-4602-9661-169e42040c22",
    "a9ef84a1-45c3-4796-8002-297dc57ac85d"
  ]
}'
{
  "performance": {
    "e4c1cbff-28a7-4602-9661-169e42040c22": {
      "averagePricePaid": "2491.73",
      "totalInvested": "1266.51",
      "unrealizedGains": "-21.55"
    },
    "a9ef84a1-45c3-4796-8002-297dc57ac85d": {
      "averagePricePaid": "107929.90",
      "totalInvested": "33.93",
      "unrealizedGains": "-0.33"
    }
  }
}

Denomination

The denomination query parameter allows you to denominate rates against another asset. If no value is set for this parameter, it defaults to USD.

Interval

The interval query parameter determines the time period for which performance data is calculated and returned. This allows you to analyze account performance over different timeframes, from recent short-term activity to comprehensive long-term investment tracking. Each interval value corresponds to a specific historical period:
IntervalDescription
one-hourPast hour of historical data
one-dayPast day of historical data
all-timeAll historical data available

Authorizations

Authorization
string
header
required

OAuth 2.0 authentication.

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

Body

application/json

Response

200
application/json

Portfolio accounts performance retrieved.

The response is of type object.