kraken-tax-export

Export trade history, ledgers, and cost basis data for tax reporting.

23 stars

Best use case

kraken-tax-export is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Export trade history, ledgers, and cost basis data for tax reporting.

Teams using kraken-tax-export should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/kraken-official-tax-export/SKILL.md --create-dirs "https://raw.githubusercontent.com/jiayaoqijia/cryptoskill/main/skills/exchanges/kraken-official-tax-export/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/kraken-official-tax-export/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How kraken-tax-export Compares

Feature / Agentkraken-tax-exportStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Export trade history, ledgers, and cost basis data for tax reporting.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# kraken-tax-export

Use this skill for:
- exporting trades and ledgers for tax preparation
- generating CSV exports for import into tax software
- computing realized gains from trade history
- auditing deposits and withdrawals for completeness

## Trade Export

Request a full trade export for a tax year:

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

Check status:

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

Download when ready:

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

Clean up after download:

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

## Ledger Export

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

```bash
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:

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

Filter by time:

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

## Futures History

Futures trades are exported separately:

```bash
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):

```bash
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:

```bash
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`:

```bash
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

- Export data is read-only; no dangerous operations involved.
- Verify export completeness by checking trade counts against `trades-history` totals.
- Keep exports secure; they contain full trading history.
- Futures and spot exports are separate; ensure both are included.

Related Skills

Kraken Crypto Skill

23
from jiayaoqijia/cryptoskill

Use the kraken_cli.py wrapper to query your Kraken account.

openclaw_kraken

23
from jiayaoqijia/cryptoskill

Use a Bash CLI to query Kraken Spot and Futures APIs, inspect account state, run guarded trading and funding actions, and work with Kraken websocket payloads using OpenClaw-managed secrets.

kraken-ws-streaming

23
from jiayaoqijia/cryptoskill

Real-time data streaming via WebSocket for spot and futures.

kraken-twap-execution

23
from jiayaoqijia/cryptoskill

Execute large orders as time-weighted slices to reduce market impact.

kraken-subaccount-ops

23
from jiayaoqijia/cryptoskill

Create and manage subaccounts with inter-account transfers.

kraken-stop-take-profit

23
from jiayaoqijia/cryptoskill

Manage stop-loss and take-profit orders for risk-bounded positions.

kraken-spot-execution

23
from jiayaoqijia/cryptoskill

Execute spot orders with validation, confirmation gates, and post-trade checks.

kraken-shared

23
from jiayaoqijia/cryptoskill

Shared runtime contract for kraken-cli: auth, invocation, parsing, and safety.

kraken-risk-operations

23
from jiayaoqijia/cryptoskill

Operational risk controls for live agent trading sessions.

kraken-rebalancing

23
from jiayaoqijia/cryptoskill

Portfolio rebalancing to maintain target allocations across assets.

kraken-rate-limits

23
from jiayaoqijia/cryptoskill

Understand Kraken API rate limits and adapt agent behavior when limits are hit.

kraken-portfolio-intel

23
from jiayaoqijia/cryptoskill

Portfolio analysis, P&L tracking, trade history, and export reports.