---
title: "Get historical balance"
method: GET
path: "/core/portfolio/historical-balance"
tags: ["Portfolio"]
---

# Get historical balance

`GET /core/portfolio/historical-balance`

## Request

- Base URL: `https://api.enterprise.sandbox.uphold.com`
- URL: `https://api.enterprise.sandbox.uphold.com/core/portfolio/historical-balance`
- Auth: OAuth 2
  - Client credentials
  - Token URL: `/core/oauth2/token` scopes: `core.portfolio:read`
- TypeScript: <https://skmtc.dev/uphold/apis/core-api/docs/core/portfolio/historical-balance/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves the historical balance of the portfolio, including the total and available balance over time.

## Query parameters

- `denomination` string
- `interval` 'one-hour' | 'one-day' | 'one-week' | 'one-month' | 'one-year'

## Headers

- `X-On-Behalf-Of` string
- `X-Uphold-User-Ip` union
  - string, ipv4
  - string, ipv6
- `X-Uphold-User-Agent` string
- `X-Uphold-User-Origin` string
- `X-Uphold-User-Country` string
- `X-Uphold-User-Subdivision` string
- `X-Uphold-User-City` string

## Response `200`

Portfolio historical balance retrieved.

- object
  - `historicalBalance` PortfolioHistoricalBalanceOverview[], required
    - `timestamp` string, date-time, required: The timestamp for the balance entry.
    - `balance` object
      - `total` string, required: The total balance at the given timestamp.
      - `available` string, required: The available balance at the given timestamp.

## Other responses

- `401`: Unauthorized.
- `403`: Forbidden.
- `404`: Resource not found.
- `409`: Business logic error.
- `429`: Too Many Requests.

---

[API](https://skmtc.dev/uphold/apis/core-api.md) - [All operations](https://skmtc.dev/uphold/apis/core-api/llms.txt) - [OpenAPI document](https://skmtc.dev/uphold/apis/core-api/revisions/6c663575c57a?raw)
