Kraken Portfolio Intel logo

Kraken Portfolio Intel

Organization
krakenfx
kraken-portfolio-intel

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

Overview

Publisherkrakenfx
Repositorykraken-cli
Skill namekraken-portfolio-intel
Stars
754
Forks
104
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by krakenfx on GitHub. Read the source before you install it.

Installation

Install the Kraken Portfolio Intel AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/krakenfx/kraken-cli/tree/main/skills/kraken-portfolio-intel
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/krakenfx/kraken-cli.git /tmp/kraken-cli
mkdir -p .claude/skills
cp -r /tmp/kraken-cli/skills/kraken-portfolio-intel .claude/skills/kraken-portfolio-intel
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Kraken Portfolio Intel in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Kraken Portfolio Intel on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Kraken Portfolio Intel is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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 (export-delete is flagged dangerous — the report is gone and must be regenerated, so confirm with the user first):

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.

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.

Frequently asked questions

What does the Kraken Portfolio Intel AI skill do?

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

Why use Kraken Portfolio Intel on TypingMind?

Because you install it once and use it with any model. Kraken Portfolio Intel is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Kraken Portfolio Intel in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/krakenfx/kraken-cli/tree/main/skills/kraken-portfolio-intel. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Kraken Portfolio Intel?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Kraken Portfolio Intel?

As many as you like. As long as a model supports skills, you can use Kraken Portfolio Intel with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Kraken Portfolio Intel AI skill free?

Yes. It is published on GitHub by krakenfx under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇