Request export of trades or ledgers.
API Key Permissions Required: Data - Export data
curl --request POST \
--url https://api.kraken.com/0/private/AddExport \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"nonce": 1695828490,
"report": "trades",
"description": "yearly report",
"format": "CSV",
"starttm": 1695728276,
"endtm": 1695828276
}
'{
"error": [],
"result": {
"id": "TCJA"
}
}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.
Nonce used in construction of API-Sign header
Type of data to export
trades, ledgers Description for the export
File format to export
CSV, TSV Comma-delimited list of fields to include
trades: ordertxid, time, ordertype, price, cost, fee, vol, margin, misc, ledgersledgers: refid, time, type, subtype, aclass, asset, amount, fee, balance, walletUNIX timestamp for report start time (default 1st of the current month)
UNIX timestamp for report end time (default now)
curl --request POST \
--url https://api.kraken.com/0/private/AddExport \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"nonce": 1695828490,
"report": "trades",
"description": "yearly report",
"format": "CSV",
"starttm": 1695728276,
"endtm": 1695828276
}
'{
"error": [],
"result": {
"id": "TCJA"
}
}