Kraken official tax export

From jiayaoqijia/cryptoskill · View interactive version

Kraken official tax export is an AI agent skill from the GitHub repository jiayaoqijia/cryptoskill. Export trade history, ledgers, and cost basis data for tax reporting.

How to use this skill

Skill file

kraken-tax-export

Use this skill for:

Trade Export

Request a full trade export for a tax year:

kraken export-report --report trades --description "2024 tax year" --format CSV --starttm 1704067200 --endtm 1735689600 -o json 2>/dev/null

Check status:

kraken export-status --report trades -o json 2>/dev/null

Download when ready:

kraken export-retrieve <REPORT_ID> -o json 2>/dev/null

Clean up after download:

kraken export-delete <REPORT_ID> -o json 2>/dev/null

Ledger Export

Ledgers capture all account activity (trades, deposits, withdrawals, staking rewards, fees):

kraken export-report --report ledgers --description "2024 full ledger" --format CSV --starttm 1704067200 --endtm 1735689600 -o json 2>/dev/null

JSON Trade History (Alternative)

For smaller date ranges, query directly:

kraken trades-history --ledgers --consolidate-taker -o json 2>/dev/null

Filter by time:

kraken closed-orders --start 1704067200 --end 1735689600 -o json 2>/dev/null

Futures History

Futures trades are exported separately:

kraken futures history-executions --since 2024-01-01T00:00:00Z --before 2025-01-01T00:00:00Z --sort asc -o json 2>/dev/null

Futures account log (CSV):

kraken futures history-account-log-csv --since 2024-01-01T00:00:00Z --before 2025-01-01T00:00:00Z -o json 2>/dev/null

Deposit and Withdrawal Records

Complete picture for tax reconciliation:

kraken deposit status --start 1704067200 --end 1735689600 -o json 2>/dev/null
kraken withdrawal status --start 1704067200 --end 1735689600 -o json 2>/dev/null

Earn/Staking Rewards

Staking rewards appear as ledger entries of type staking:

kraken ledgers --type staking --start 1704067200 --end 1735689600 -o json 2>/dev/null

Cost Basis Workflow

  1. Export all trades for the tax year (CSV).
  2. Import into tax software (Koinly, CoinTracker, etc.).
  3. Verify deposit/withdrawal records match exchange data.
  4. Cross-reference staking rewards from ledger entries.
  5. Generate tax report.

Hard Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.