Agent Skillskrakenfx/kraken-cli › kraken-tax-export

kraken-tax-export

GitHub

用于导出Kraken交易历史、账本及成本基础数据,生成CSV以支持税务申报。涵盖现货、期货、存提款及质押奖励的审计与核对,确保税务合规。

skills/kraken-tax-export/SKILL.md krakenfx/kraken-cli

Trigger Scenarios

需要导出交易所交易记录进行税务计算 验证存提款和质押奖励以完成税务对账

Install

npx skills add krakenfx/kraken-cli --skill kraken-tax-export -g -y
More Options

Use without installing

npx skills use krakenfx/kraken-cli@kraken-tax-export

指定 Agent (Claude Code)

npx skills add krakenfx/kraken-cli --skill kraken-tax-export -a claude-code -g -y

安装 repo 全部 skill

npx skills add krakenfx/kraken-cli --all -g -y

预览 repo 内 skill

npx skills add krakenfx/kraken-cli --list

SKILL.md

Frontmatter
{
    "name": "kraken-tax-export",
    "version": "1.0.0",
    "metadata": {
        "openclaw": {
            "category": "finance"
        },
        "requires": {
            "bins": [
                "kraken"
            ],
            "skills": [
                "kraken-portfolio-intel"
            ]
        }
    },
    "description": "Export trade history, ledgers, and cost basis data for tax reporting."
}

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:

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

  • Requesting and reading exports is read-only, but export-retrieve (writes to disk) and export-delete (irreversible) are flagged dangerous. Never delete a report without explicit human approval.
  • 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.
  • If you hit a mismatch between what you are trying to do and the CLI's interface or responses — including a mismatch between this skill and the installed CLI version's contract — feel free to submit feedback with kraken feedback.

Version History

  • aa56e59 Current 2026-08-20 04:45

    新增kraken feedback命令用于提交反馈;MCP账户设置变更需显式确认;期货WebSocket URL受信任主机白名单限制;工具链及依赖升级。

  • aa32814 2026-07-25 10:29

Same Skill Collection

skills/kraken-alert-patterns/SKILL.md
skills/kraken-autonomy-levels/SKILL.md
skills/kraken-basis-trading/SKILL.md
skills/kraken-dca-strategy/SKILL.md
skills/kraken-earn-staking/SKILL.md
skills/kraken-error-recovery/SKILL.md
skills/kraken-fee-optimization/SKILL.md
skills/kraken-funding-carry/SKILL.md
skills/kraken-funding-ops/SKILL.md
skills/kraken-futures-risk/SKILL.md
skills/kraken-grid-trading/SKILL.md
skills/kraken-lab-experiment/SKILL.md
skills/kraken-liquidation-guard/SKILL.md
skills/kraken-market-intel/SKILL.md
skills/kraken-mcp-integration/SKILL.md
skills/kraken-multi-pair/SKILL.md
skills/kraken-order-types/SKILL.md
skills/kraken-paper-strategy/SKILL.md
skills/kraken-paper-to-live/SKILL.md
skills/kraken-playground/SKILL.md
skills/kraken-portfolio-intel/SKILL.md
skills/kraken-rate-limits/SKILL.md
skills/kraken-rebalancing/SKILL.md
skills/kraken-risk-operations/SKILL.md
skills/kraken-setup/SKILL.md
skills/kraken-spot-execution/SKILL.md
skills/kraken-stop-take-profit/SKILL.md
skills/kraken-subaccount-ops/SKILL.md
skills/kraken-twap-execution/SKILL.md
skills/kraken-ws-streaming/SKILL.md
skills/recipe-basis-trade-entry/SKILL.md
skills/recipe-daily-pnl-report/SKILL.md
skills/recipe-drawdown-circuit-breaker/SKILL.md
skills/recipe-earn-yield-compare/SKILL.md
skills/recipe-emergency-flatten/SKILL.md
skills/recipe-fee-tier-progress/SKILL.md
skills/recipe-funding-rate-scan/SKILL.md
skills/recipe-futures-hedge-spot/SKILL.md
skills/recipe-launch-grid-bot/SKILL.md
skills/recipe-morning-market-brief/SKILL.md
skills/recipe-multi-pair-breakout-watch/SKILL.md
skills/recipe-paper-strategy-backtest/SKILL.md
skills/recipe-playground-dca-triggered/SKILL.md
skills/recipe-playground-dca/SKILL.md
skills/recipe-playground-price-alert/SKILL.md
skills/recipe-playground-rebalance/SKILL.md
skills/recipe-playground-webhook/SKILL.md
skills/recipe-portfolio-snapshot-csv/SKILL.md
skills/recipe-price-level-alerts/SKILL.md

Metadata

Files
0
Version
aa56e59
Hash
b7fbc2b5
Indexed
2026-07-25 10:29

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 14:15
浙ICP备14020137号-1 $Гость$