Retrieve a summary of collateral balances, margin position valuations, equity and margin level.
API Key Permissions Required: Orders and trades - Query open orders & trades
curl --request POST \
--url https://api.kraken.com/0/private/TradeBalance \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"nonce": 1695828490,
"asset": "ZUSD"
}
'{
"error": [],
"result": {
"eb": "1101.3425",
"tb": "392.2264",
"m": "7.0354",
"n": "-10.0232",
"c": "21.1063",
"v": "31.1297",
"e": "382.2032",
"mf": "375.1678",
"ml": "5432.57"
}
}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.
Update Account Profile Request Body
Nonce used in construction of API-Sign header
Base asset used to determine balance
Optional parameter for viewing xstocks data.
rebased: Display in terms of underlying equity.base: Display in terms of SPV tokens.rebased, base curl --request POST \
--url https://api.kraken.com/0/private/TradeBalance \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"nonce": 1695828490,
"asset": "ZUSD"
}
'{
"error": [],
"result": {
"eb": "1101.3425",
"tb": "392.2264",
"m": "7.0354",
"n": "-10.0232",
"c": "21.1063",
"v": "31.1297",
"e": "382.2032",
"mf": "375.1678",
"ml": "5432.57"
}
}