GET
/
core
/
portfolio
/
accounts
/
{accountId}
/
historical-balance
curl --request GET \
  --url https://api.enterprise.sandbox.uphold.com/core/portfolio/accounts/{accountId}/historical-balance \
  --header 'Authorization: Bearer <token>'
{
"historicalBalance": [
{
"timestamp": "2020-01-01T00:00:00Z",
"balance": {
"total": "1000.00",
"available": "950.00"
}
},
{
"timestamp": "2020-01-02T00:00:00Z",
"balance": {
"total": "1200.00",
"available": "1150.00"
}
}
]
}

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 historical data.

Available options:
one-hour,
one-day,
one-week,
one-month,
one-year
includeSource
boolean
default:false

Whether to include total and available amounts denominated in the source asset, in addition to the selected denomination.

Response

200
application/json

Portfolio account historical balance retrieved.

The response is of type object.