Skip to content
All sources

Kraken in TaxChain

Beta

TaxChain reads Kraken and is tested against its documented and recorded responses, but has not yet been reconciled against real data. Check the figures against Kraken's own statement before you file.

A centralised exchange with spot, margin, staking and Earn products; its futures run on a separate platform, Kraken Futures. TaxChain reads Kraken's ledger export, the one file in which every balance change appears, and pairs the two entries of each trade into one transaction. An API connection through CCXT exists in the code but is not offered.

Ways in

  • File uploadBeta

    Kraken ledger export (`ledgers.csv`)

    The Ledgers export, as CSV, covering your whole account history. Its columns are txid, refid, time, type, subtype, aclass, asset, wallet, amount, fee and balance; older exports without the wallet column are read too [1].

    Kraken asks for a start and end date for each export and may take from minutes to days to prepare it [2]. Upload the ledgers.csv file itself: TaxChain reads .csv files, not a zip archive.

    The Trades export (`trades.csv`) is not read and is not needed: every trade is also in the ledger, as two entries sharing a refid, together with deposits, withdrawals, staking and fees that the Trades export leaves out.

    Times are read as UTC, which is how Kraken writes them [1].

  • API connectionNot offered yet

    CCXT `kraken` [3]

    A read-only API key with the permissions Query Funds, Query Closed Orders & Trades and Query Ledger Entries [4] [5] [6].

    Not offered. CCXT knows no Kraken sandbox, so the sync can only be checked against a real account, which has not been done.

    The current paging cannot read a full history. Kraken returns trades and ledger entries 50 at a time, newest first [4] [5]; TaxChain's paging expects the oldest first, so a full sync reads the newest 50 trades and the newest 50 ledger entries and stops. It needs fixing before the API could be offered.

    The API path also reads less than the file does: app purchases (spend and receive entries) and airdrops are not imported, Earn allocations are read as income, and staking income keeps Kraken's wallet suffix (DOT.S rather than DOT). Each is a recorded test failure.

    Kraken can also produce the same ledger file through its API (AddExport, with the Export data permission) [7]. Reading that file with the CSV reader would give the API path the file's coverage; it is not built.

  • Wallet addressNot available

    None

    An exchange account has no public address of its own to read. Your own wallets that send to or receive from Kraken can be added as chain sources.

What is read

ActivityStatus
Spot tradesThe two ledger entries of each trade, paired by refid: a buy when euros, dollars, pounds or francs were given, a sell when they were received, otherwise a swap of the coin given.Read
Buy Crypto and Kraken app purchasesKraken writes these as a spend and a receive entry; they are paired like trades. A card purchase also adds a deposit of the full card charge [1].Read
Trading feesFrom each entry's fee column. A fee on the coin received is netted from the quantity received; a fee on the coin or fiat given is stated as the fee.Read
Deposits and withdrawalsWith the withdrawal fee in the asset withdrawn. A movement Kraken writes twice, once without a txid, is counted once.Read
Staking and Earn rewardsEarn rewards and the older staking entries, as staking income in the plain asset: DOT.S, DOT28.S, ETH2.S and USDC.M are read as DOT, ETH and USDC.Read
Moves into and out of staking and EarnAllocation, deallocation, autoallocate (Kraken Rewards), migration and the older staking transfer subtypes [1] are read as moves between your own wallets, which realise nothing.Read
Airdrops and fork creditsA transfer entry with no subtype, which is how Kraken credits them [1], is read as an airdrop.Read
Referral bonusesInvite bonus entries, Kraken's credit for its app referral programme [1], are read as income received for nothing given, the same type as an airdrop. Before 21 November 2026 they were listed as warnings and left out: upload the file again to add them.Read
Margin: profit and loss, rollover fees, settlementsMargin, rollover and settled entries are listed as warnings and not imported.Not read
Conversions outside trading (adjustment)Kraken uses adjustment entries when it converts a delisted asset [1]. They are listed as warnings; the disposal and the asset received have to be added by hand.Not read
Kraken FuturesA separate platform with its own account log; nothing traded on Kraken Futures is imported. Moves between spot and futures written as transfer entries are read as moves between your own wallets; Kraken also writes some moves back from futures as deposits [1], which TaxChain reads as deposits.Not read
NFTsNFT ledger entries are listed as warnings and not imported.Not read

Limitations

  • Every entry TaxChain does not read is listed as a warning on the import, with its type and amount. Check that list: margin results and delisting conversions in it are missing from your figures.
  • Kraken Futures is not read. If you traded futures there, its results are missing.
  • A trade whose refid holds more or fewer than two entries, one given and one received, is reported as an error and not imported. Trades paid with Kraken fee credits (KFEE) have not been checked against a real export.
  • Kraken kept the old Terra tickers after the 2022 fork: its LUNA is Terra Classic, its UST is TerraUSD Classic and the new chain is LUNA2 [8]. TaxChain renames them to the tickers used elsewhere, LUNC, USTC and LUNA, as CCXT does [3]. A Kraken file uploaded before 21 November 2026 was stored under Kraken's tickers, and uploading it again does not rename rows already stored: remove that earlier upload and upload the file again, or a Terra Classic holding stays named LUNA, the new chain's ticker, and its price may be missing or wrong.
  • Euros, US dollars, pounds and Swiss francs are treated as fiat. A trade against another fiat currency, such as yen or Canadian dollars, is read as a swap of two assets.
  • Staking and Earn moves are recorded as transfers between your own wallets. Lots pool per asset across all wallets, so a staked coin keeps its original cost and date.

How it has been checked

  • November 20, 2026Every ledger entry type and subtype in Kraken's ledger guide, written as rows of a ledgers.csv file and run through the CSV reader: each row is either imported as the expected transaction or listed as a warning. Two documented cases failed that day, the autoallocate subtype and the invite bonus; both were fixed on 21 November 2026.
  • November 21, 2026Fix of the CSV reader: the autoallocate subtype is read as a move between your own wallets, an invite bonus as income, and Kraken's Terra tickers LUNA, LUNA2 and UST as LUNC, LUNA and USTC, including staked balances (LUNA.S) and both sides of a trade. Each fix was checked by putting the defect back and seeing its test fail.
  • November 20, 2026Trade pairing, fees, app purchases, Earn rewards and the duplicate deposit entry, tested on rows written to Kraken's documented format.
  • November 20, 2026The CCXT path run against Kraken's documented API behaviour (50 rows per call, newest first), with Kraken's public market and asset tables recorded the same day. It reads 50 of 120 trades and 50 of 80 ledger entries, which is why the API is not offered.
  • November 20, 2026CCXT's own recorded Kraken responses (one deposit, one withdrawal) read through the normalisers.

What would make it Verified

A real Kraken ledger export, covering trades, app purchases, deposits, withdrawals and staking, imported and reconciled through the engine: the closing balance of every asset in TaxChain should match the balance column of the file's last entry per asset, and the year's figures should match Kraken's own statement.

For the API: paging that reads newest-first results in full, the spend, receive, transfer and Earn entries mapped as the file maps them, and one sync of a real account that matches the same account's ledger export.

How to add it

  • Sign in to Kraken and open Documents from the profile menu [2].
  • Create an export, choose Ledgers, CSV, all assets, and a date range from the day you opened the account to today.
  • When the export is ready, download it. If Kraken gives you a zip archive, extract it.
  • Upload ledgers.csv to TaxChain as a Kraken file. Do not open and re-save it in a spreadsheet first.
  • Read the import's warnings: they list every entry that was not imported.

References

  1. [1]How to interpret Ledger history fields. Kraken Support. Ledger columns and every entry type and subtype: trade, spend, receive, deposit, withdrawal, transfer (airdrops, futures, staking), earn (allocation, deallocation, autoallocate, reward, migration), staking, margin, rollover, settled, adjustment, invite bonus.
  2. [2]How to export your account history. Kraken Support. Documents page; Trades and Ledgers need a start and end date; CSV or PDF; preparation can take up to a week.
  3. [3]CCXT 4.5.93, kraken exchange class. CCXT. fetchMyTrades, fetchDeposits, fetchWithdrawals and fetchLedger; no convert history; no sandbox. Kraken Futures is a separate class, krakenfutures. Its commonCurrencies rename Kraken's LUNA, LUNA2 and UST to LUNC, LUNA and USTC.
  4. [4]Get Ledgers Info. Kraken API documentation. 50 results at a time, the most recent by default; start exclusive, end inclusive; ofs (deprecated) or cursor for paging. Permission: Query ledger entries.
  5. [5]Get Trades History. Kraken API documentation. Most recent trades first, 50 by default. Permission: Query closed orders & trades.
  6. [6]Get Status of Recent Deposits. Kraken API documentation. Sorted by recency, cursor paging; marked deprecated in favour of the Funding (Beta) API. Permission: Funds permissions, Query.
  7. [7]Request Export Report. Kraken API documentation. AddExport for the trades or ledgers report, CSV or TSV, with a start and end time. Permission: Export data.
  8. [8]LUNA and UST updates on Kraken. Kraken Support. The new Terra chain is listed as LUNA2; the old chain, renamed Terra Classic, keeps the asset name LUNA; UST stays UST.

Last checked against the platform's documentation and TaxChain's code on November 21, 2026.