POST
/
core
/
portfolio
/
accounts
/
_mget
/
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": [
    "9d05c1f2-4022-4e50-a4da-41bc09a274bd",
    "fe7f11ef-2442-4a20-8898-84610073f6b3"
  ]
}'
{
  "performance": {
    "a9ef84a1-45c3-4796-8002-297dc57ac85d": {
      "averagePricePaid": "105072.09875643805",
      "totalInvested": "33.0399214539619448225",
      "unrealizedGains": "0.653003149818696335"
    },
    "e4c1cbff-28a7-4602-9661-169e42040c22": {
      "averagePricePaid": "2669.976380967428798325",
      "totalInvested": "1357.1200000000000000001670439829579313752",
      "unrealizedGains": "-20.689476169625368638683015291457931375"
    }
  }
}

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.