Account Data

Get Trade Balance

Retrieve a summary of collateral balances, margin position valuations, equity and margin level.

API Key Permissions Required: Orders and trades - Query open orders & trades

post/private/TradeBalance

Request

  • Base URL: https://api.kraken.com/0
  • URL: https://api.kraken.com/0/private/TradeBalance
  • Auth: API key in header API-Key and API key in header API-Sign

Query parameters

account_idstring

Public wallet account ID. Omit to use the authenticated user's default wallet. See List Wallet Accounts.

Request body

nonceinteger required

Nonce used in construction of API-Sign header

assetstring

Base asset used to determine balance

rebase_multiplier'rebased' | 'base' nullable

Optional parameter for viewing xStocks data.

  • rebased: Display in terms of underlying equity.
  • base: Display in terms of SPV tokens.

Example request

{
  "nonce": 1695828490,
  "asset": "ZUSD"
}

Response

Trade balances retrieved.

errorstring[]

Example response

{
  "result": {
    "eb": "3224744.0162",
    "tb": "3224744.0162",
    "m": "0.0000",
    "n": "0.0000",
    "c": "0.0000",
    "v": "0.0000",
    "e": "3224744.0162",
    "mf": "3224744.0162",
    "mfo": "3224744.0162",
    "ml": "0.0000",
    "uv": "0.0000"
  },
  "error": [
    "EGeneral:Invalid arguments"
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.