Skip to main content
POST
/
private
/
QueryLedgers
Query Ledgers
curl --request POST \
  --url https://api.kraken.com/0/private/QueryLedgers \
  --header 'API-Key: <api-key>' \
  --header 'API-Sign: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "nonce": 1695828490,
  "id": "LUI2RA-CJFLB-EN5I4P, L2QE42-IGSZ3-WEVTLK",
  "trade": false
}
'
{
  "error": [],
  "result": {
    "L4UESK-KG3EQ-UFO4T5": {
      "refid": "TJKLXF-PGMUI-4NTLXU",
      "time": 1688464484.1787,
      "type": "trade",
      "subtype": "",
      "aclass": "currency",
      "asset": "ZGBP",
      "amount": "-24.5000",
      "fee": "0.0490",
      "balance": "459567.9171"
    }
  }
}

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.

Authorizations

API-Key
string
header
required

The "API-Key" header should contain your API key.

API-Sign
string
header
required

Authenticated requests should be signed with the "API-Sign" header, using a signature generated with your private key, nonce, encoded payload, and URI path.

Body

application/json
nonce
integer<int64>
required

Nonce used in construction of API-Sign header

id
string
required

Comma delimited list of ledger IDs to query info about (20 maximum)

trades
boolean
default:false

Whether or not to include trades related to position in output

rebase_multiplier
enum<string> | null
default:rebased

Optional parameter for viewing xstocks data.

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

Response

200 - application/json

Ledgers info retrieved.

result
object
error
string[]

Kraken API error