Gets a portfolio’s historical balances and valuations over time.
Pagination: A maximum of 365 data points are returned per request.
If the requested date range would produce more than 365 data points, the
response is truncated and a next_cursor is returned. Pass this cursor
in a subsequent request to retrieve the next page. Repeat until
next_cursor is absent.
Important notes:
curl --request GET \
--url https://nexus.kraken.com/b2b/portfolio/{user}/history \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>'{
"result": {
"start_date": "2023-03-13",
"end_date": "2023-03-13",
"history": [
{
"date": "2023-03-13",
"total_balance": "1.23",
"total_pnl": "1.23",
"total_pnl_pct": "1.23",
"assets": {}
}
],
"next_cursor": "<string>",
"currency": "BTC",
"total_pnl": "1.23",
"total_pnl_pct": "1.23"
}
}Documentation Index
Fetch the complete documentation index at: https://kraken-sandbox.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The "API-Key" header should contain your API key.
Authenticated requests should be signed with the "API-Sign" header, using a signature generated with your private key, nonce, encoded payload, and URI path.
The target version of the Embed API to use. The API version name is based on the date when the API version was released. For example, the API version 2025-04-15 was released on April 15, 2025.
2025-04-15 Internet International Bank Account Number (IIBAN)
14 - 42Include historical balances by asset
3 - 16Include the overall historical balance totals
Include the overall historical pnl totals
Start date of the fetching window. Only balances for dates that are after start_date will be returned. This is an optional parameter. If not present it will be equal to end_date - 365 days by default. Note: if the range between start_date and end_date produces more than 365 data points, the response will be paginated via next_cursor.
A RFC3339 date (without time)
"2023-03-13"
End date of the fetching window. Only balances for dates that are before end_date will be returned. This is an optional parameter. If not present then current date will be used by default.
A RFC3339 date (without time)
"2023-03-13"
The resolution of returned data. Only 1 out of each resolution
days will be returned. For example if resolution is set to 7 then only
one day for each week will be returned. Default: 1, every day will be
returned.
0 <= x <= 4294967295If provided, shows values as the provided asset.
3 - 16"BTC"
Optional cursor for pagination. Use the next_cursor value from a previous response to fetch the next page of data points. When provided, other parameters are ignored (they are encoded in the cursor).
Response
Show child attributes
curl --request GET \
--url https://nexus.kraken.com/b2b/portfolio/{user}/history \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>'{
"result": {
"start_date": "2023-03-13",
"end_date": "2023-03-13",
"history": [
{
"date": "2023-03-13",
"total_balance": "1.23",
"total_pnl": "1.23",
"total_pnl_pct": "1.23",
"assets": {}
}
],
"next_cursor": "<string>",
"currency": "BTC",
"total_pnl": "1.23",
"total_pnl_pct": "1.23"
}
}