kraken-portfolio-intel

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

23 stars

Best use case

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

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

Teams using kraken-portfolio-intel 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-portfolio-intel/SKILL.md --create-dirs "https://raw.githubusercontent.com/jiayaoqijia/cryptoskill/main/skills/exchanges/kraken-official-portfolio-intel/SKILL.md"

Manual Installation

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

How kraken-portfolio-intel Compares

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

Frequently Asked Questions

What does this skill do?

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

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-portfolio-intel

Use this skill for:
- reading balances and computing portfolio value
- tracking trade history and P&L
- analyzing fee impact and volume tiers
- exporting reports for external analysis

## Balance Overview

Simple balance:

```bash
kraken balance -o json 2>/dev/null
```

Extended balance (includes credit and held amounts):

```bash
kraken extended-balance -o json 2>/dev/null
```

Trade balance (margin, equity, free margin):

```bash
kraken trade-balance --asset USD -o json 2>/dev/null
```

## Portfolio Valuation

Combine balances with current prices to compute total portfolio value:

```bash
# Get all balances
kraken balance -o json 2>/dev/null

# Get prices for held assets
kraken ticker BTCUSD ETHUSD SOLUSD -o json 2>/dev/null

# Agent calculates:
# value_per_asset = balance * price
# total_value = sum of all values
# weight_per_asset = value / total_value
```

## Trade History

Recent trades:

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

With ledger entries for cost basis:

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

Consolidated taker trades (merge partial fills):

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

Time-filtered:

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

Query specific trades by TXID:

```bash
kraken query-trades <TXID1> <TXID2> -o json 2>/dev/null
```

## Ledger Analysis

View all ledger entries (trades, deposits, withdrawals, staking):

```bash
kraken ledgers -o json 2>/dev/null
```

Filter by type:

```bash
kraken ledgers --type trade -o json 2>/dev/null
kraken ledgers --type deposit -o json 2>/dev/null
kraken ledgers --type withdrawal -o json 2>/dev/null
kraken ledgers --type staking -o json 2>/dev/null
```

Filter by asset:

```bash
kraken ledgers --asset BTC -o json 2>/dev/null
```

Time range:

```bash
kraken ledgers --asset BTC --type trade --start 1704067200 --end 1706745600 -o json 2>/dev/null
```

## Fee Analysis

Check current volume and fee tier:

```bash
kraken volume --pair BTCUSD -o json 2>/dev/null
```

The response includes 30-day volume and the corresponding maker/taker fee rates.

## Export Reports

Request a trade or ledger export for offline analysis:

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

Check export 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 old reports:

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

## Futures Portfolio

Futures account summary:

```bash
kraken futures accounts -o json 2>/dev/null
```

Futures fill history:

```bash
kraken futures fills --since 2024-01-01T00:00:00Z -o json 2>/dev/null
```

Futures execution history:

```bash
kraken futures history-executions --sort desc -o json 2>/dev/null
```

Futures account log (CSV export):

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

## Open Positions

Spot margin positions:

```bash
kraken positions --show-pnl -o json 2>/dev/null
```

Futures positions:

```bash
kraken futures positions -o json 2>/dev/null
```

## Context Efficiency

- Use `--offset` and `--limit` for paginated queries.
- Use `--without-count` on large history queries to skip count computation.
- Filter by asset and time range to reduce response size.
- Use exports for bulk data instead of paginating through REST.

Related Skills

okx-wallet-portfolio

23
from jiayaoqijia/cryptoskill

This skill should be used when the user asks to 'check my wallet balance', 'show my token holdings', 'how much OKB do I have', 'what tokens do I have', 'check my portfolio value', 'view my assets', 'how much is my portfolio worth', 'what\'s in my wallet', or mentions checking wallet balance, total assets, token holdings, portfolio value, remaining funds, DeFi positions, or multi-chain balance lookup. Supports XLayer, Solana, Ethereum, Base, BSC, Arbitrum, Polygon, and 20+ other chains. Do NOT use for general programming questions about balance variables or API documentation. Do NOT use when the user is asking how to build or integrate a balance feature into code.

okx-cex-portfolio

23
from jiayaoqijia/cryptoskill

This skill should be used when the user asks about 'account balance', 'how much USDT do I have', 'my funding account', 'show my positions', 'open positions', 'position P&L', 'unrealized PnL', 'closed positions', 'position history', 'realized PnL', 'account bills', 'transaction history', 'trading fees', 'fee tier', 'account config', 'max order size', 'how much can I buy', 'withdrawable amount', 'transfer funds', 'move USDT to trading account', or 'switch position mode'. Requires API credentials. Do NOT use for market prices (use okx-cex-market), placing/cancelling orders (use okx-cex-trade), or grid/DCA bots (use okx-cex-bot).

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-tax-export

23
from jiayaoqijia/cryptoskill

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

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.